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

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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-
struct OperandCollector<'tcx, 'map, 'locals, 'a> {
841+
struct OperandCollector<'a, 'locals, 'tcx> {
842842
state: &'a State<FlatSet<Scalar>>,
843843
visitor: &'a mut Collector<'tcx, 'locals>,
844-
ecx: &'map mut InterpCx<'tcx, DummyMachine>,
845-
map: &'map Map<'tcx>,
844+
ecx: &'a mut InterpCx<'tcx, DummyMachine>,
845+
map: &'a Map<'tcx>,
846846
}
847847

848-
impl<'tcx> Visitor<'tcx> for OperandCollector<'tcx, '_, '_, '_> {
848+
impl<'tcx> Visitor<'tcx> for OperandCollector<'_, '_, 'tcx> {
849849
fn visit_projection_elem(
850850
&mut self,
851851
_: PlaceRef<'tcx>,

0 commit comments

Comments
 (0)