@@ -35,7 +35,7 @@ pub struct Qualifs<'mir, 'tcx> {
35
35
needs_non_const_drop : Option < QualifResults < ' mir , ' tcx , NeedsNonConstDrop > > ,
36
36
}
37
37
38
- impl Qualifs < ' mir , ' tcx > {
38
+ impl < ' mir , ' tcx > Qualifs < ' mir , ' tcx > {
39
39
/// Returns `true` if `local` is `NeedsDrop` at the given `Location`.
40
40
///
41
41
/// Only updates the cursor if absolutely necessary
@@ -185,15 +185,15 @@ pub struct Checker<'mir, 'tcx> {
185
185
secondary_errors : Vec < Diagnostic > ,
186
186
}
187
187
188
- impl Deref for Checker < ' mir , ' tcx > {
188
+ impl < ' mir , ' tcx > Deref for Checker < ' mir , ' tcx > {
189
189
type Target = ConstCx < ' mir , ' tcx > ;
190
190
191
191
fn deref ( & self ) -> & Self :: Target {
192
192
& self . ccx
193
193
}
194
194
}
195
195
196
- impl Checker < ' mir , ' tcx > {
196
+ impl < ' mir , ' tcx > Checker < ' mir , ' tcx > {
197
197
pub fn new ( ccx : & ' mir ConstCx < ' mir , ' tcx > ) -> Self {
198
198
Checker {
199
199
span : ccx. body . span ,
@@ -273,7 +273,7 @@ impl Checker<'mir, 'tcx> {
273
273
struct StorageDeads {
274
274
locals : BitSet < Local > ,
275
275
}
276
- impl Visitor < ' tcx > for StorageDeads {
276
+ impl < ' tcx > Visitor < ' tcx > for StorageDeads {
277
277
fn visit_statement ( & mut self , stmt : & Statement < ' tcx > , _: Location ) {
278
278
if let StatementKind :: StorageDead ( l) = stmt. kind {
279
279
self . locals . insert ( l) ;
@@ -460,7 +460,7 @@ impl Checker<'mir, 'tcx> {
460
460
}
461
461
}
462
462
463
- impl Visitor < ' tcx > for Checker < ' mir , ' tcx > {
463
+ impl < ' tcx > Visitor < ' tcx > for Checker < ' _ , ' tcx > {
464
464
fn visit_basic_block_data ( & mut self , bb : BasicBlock , block : & BasicBlockData < ' tcx > ) {
465
465
trace ! ( "visit_basic_block_data: bb={:?} is_cleanup={:?}" , bb, block. is_cleanup) ;
466
466
@@ -1042,7 +1042,7 @@ impl Visitor<'tcx> for Checker<'mir, 'tcx> {
1042
1042
}
1043
1043
}
1044
1044
1045
- fn place_as_reborrow (
1045
+ fn place_as_reborrow < ' tcx > (
1046
1046
tcx : TyCtxt < ' tcx > ,
1047
1047
body : & Body < ' tcx > ,
1048
1048
place : Place < ' tcx > ,
0 commit comments