Skip to content

Commit 1aafeb2

Browse files
committed
Remove unnecessary lifetime from OperandCollector.
Also put the remaining lifetimes into the usual order.
1 parent bed91f5 commit 1aafeb2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎compiler/rustc_mir_transform/src/dataflow_const_prop.rs‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -838,14 +838,14 @@ impl<'tcx> MutVisitor<'tcx> for Patch<'tcx> {
838838
}
839839
}
840840

841-
structOperandCollector<'tcx,'map,'locals,'a>{
841+
structOperandCollector<'a,'locals,'tcx>{
842842
state:&'aState<FlatSet<Scalar>>,
843843
visitor:&'amutCollector<'tcx,'locals>,
844-
ecx:&'mapmutInterpCx<'tcx,DummyMachine>,
845-
map:&'mapMap<'tcx>,
844+
ecx:&'amutInterpCx<'tcx,DummyMachine>,
845+
map:&'aMap<'tcx>,
846846
}
847847

848-
impl<'tcx>Visitor<'tcx>forOperandCollector<'tcx,'_,'_,'_>{
848+
impl<'tcx>Visitor<'tcx>forOperandCollector<'_,'_,'tcx>{
849849
fnvisit_projection_elem(
850850
&mutself,
851851
_:PlaceRef<'tcx>,

0 commit comments

Comments
 (0)