@@ -35,7 +35,7 @@ pub struct Qualifs<'mir, 'tcx> {
3535 needs_non_const_drop : Option < QualifResults < ' mir , ' tcx , NeedsNonConstDrop > > ,
3636}
3737
38- impl Qualifs < ' mir , ' tcx > {
38+ impl < ' mir , ' tcx > Qualifs < ' mir , ' tcx > {
3939 /// Returns `true` if `local` is `NeedsDrop` at the given `Location`.
4040 ///
4141 /// Only updates the cursor if absolutely necessary
@@ -185,15 +185,15 @@ pub struct Checker<'mir, 'tcx> {
185185 secondary_errors : Vec < Diagnostic > ,
186186}
187187
188- impl Deref for Checker < ' mir , ' tcx > {
188+ impl < ' mir , ' tcx > Deref for Checker < ' mir , ' tcx > {
189189 type Target = ConstCx < ' mir , ' tcx > ;
190190
191191 fn deref ( & self ) -> & Self :: Target {
192192 & self . ccx
193193 }
194194}
195195
196- impl Checker < ' mir , ' tcx > {
196+ impl < ' mir , ' tcx > Checker < ' mir , ' tcx > {
197197 pub fn new ( ccx : & ' mir ConstCx < ' mir , ' tcx > ) -> Self {
198198 Checker {
199199 span : ccx. body . span ,
@@ -273,7 +273,7 @@ impl Checker<'mir, 'tcx> {
273273 struct StorageDeads {
274274 locals : BitSet < Local > ,
275275 }
276- impl Visitor < ' tcx > for StorageDeads {
276+ impl < ' tcx > Visitor < ' tcx > for StorageDeads {
277277 fn visit_statement ( & mut self , stmt : & Statement < ' tcx > , _: Location ) {
278278 if let StatementKind :: StorageDead ( l) = stmt. kind {
279279 self . locals . insert ( l) ;
@@ -460,7 +460,7 @@ impl Checker<'mir, 'tcx> {
460460 }
461461}
462462
463- impl Visitor < ' tcx > for Checker < ' mir , ' tcx > {
463+ impl < ' tcx > Visitor < ' tcx > for Checker < ' _ , ' tcx > {
464464 fn visit_basic_block_data ( & mut self , bb : BasicBlock , block : & BasicBlockData < ' tcx > ) {
465465 trace ! ( "visit_basic_block_data: bb={:?} is_cleanup={:?}" , bb, block. is_cleanup) ;
466466
@@ -1042,7 +1042,7 @@ impl Visitor<'tcx> for Checker<'mir, 'tcx> {
10421042 }
10431043}
10441044
1045- fn place_as_reborrow (
1045+ fn place_as_reborrow < ' tcx > (
10461046 tcx : TyCtxt < ' tcx > ,
10471047 body : & Body < ' tcx > ,
10481048 place : Place < ' tcx > ,
0 commit comments