Skip to content

Commit bed91f5

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

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎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-
structPlaceCollector<'a,'b,'tcx>{
926+
structPlaceCollector<'a,'tcx>{
927927
tcx:TyCtxt<'tcx>,
928-
body:&'bBody<'tcx>,
928+
body:&'aBody<'tcx>,
929929
map:&'amutMap<'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
fnregister_place(&mutself,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>forPlaceCollector<'_,'_,'tcx>{
970+
impl<'tcx>Visitor<'tcx>forPlaceCollector<'_,'tcx>{
971971
#[tracing::instrument(level = "trace", skip(self))]
972972
fnvisit_place(&mutself,place:&Place<'tcx>,ctxt:PlaceContext, _:Location){
973973
if !ctxt.is_use(){

0 commit comments

Comments
 (0)