Skip to content

Commit bed91f5

Browse files
committed
Remove unnecessary lifetime in PlaceCollector.
1 parent 3fe7dd6 commit bed91f5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

compiler/rustc_mir_dataflow/src/value_analysis.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -923,14 +923,14 @@ impl<'tcx> Map<'tcx> {
923923
}
924924
}
925925

926-
struct PlaceCollector<'a, 'b, 'tcx> {
926+
struct PlaceCollector<'a, 'tcx> {
927927
tcx: TyCtxt<'tcx>,
928-
body: &'b Body<'tcx>,
928+
body: &'a Body<'tcx>,
929929
map: &'a mut Map<'tcx>,
930930
assignments: FxIndexSet<(PlaceIndex, PlaceIndex)>,
931931
}
932932

933-
impl<'tcx> PlaceCollector<'_, '_, 'tcx> {
933+
impl<'tcx> PlaceCollector<'_, 'tcx> {
934934
#[tracing::instrument(level = "trace", skip(self))]
935935
fn register_place(&mut self, place: Place<'tcx>) -> Option<PlaceIndex> {
936936
// Create a place for this projection.
@@ -967,7 +967,7 @@ impl<'tcx> PlaceCollector<'_, '_, 'tcx> {
967967
}
968968
}
969969

970-
impl<'tcx> Visitor<'tcx> for PlaceCollector<'_, '_, 'tcx> {
970+
impl<'tcx> Visitor<'tcx> for PlaceCollector<'_, 'tcx> {
971971
#[tracing::instrument(level = "trace", skip(self))]
972972
fn visit_place(&mut self, place: &Place<'tcx>, ctxt: PlaceContext, _: Location) {
973973
if !ctxt.is_use() {

0 commit comments

Comments
 (0)