Remove unnecessary lifetime in PlaceCollector
.
This commit is contained in:
parent
3fe7dd6893
commit
bed91f5065
1 changed files with 4 additions and 4 deletions
|
@ -923,14 +923,14 @@ impl<'tcx> Map<'tcx> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
struct PlaceCollector<'a, 'b, 'tcx> {
|
struct PlaceCollector<'a, 'tcx> {
|
||||||
tcx: TyCtxt<'tcx>,
|
tcx: TyCtxt<'tcx>,
|
||||||
body: &'b Body<'tcx>,
|
body: &'a Body<'tcx>,
|
||||||
map: &'a mut Map<'tcx>,
|
map: &'a mut Map<'tcx>,
|
||||||
assignments: FxIndexSet<(PlaceIndex, PlaceIndex)>,
|
assignments: FxIndexSet<(PlaceIndex, PlaceIndex)>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'tcx> PlaceCollector<'_, '_, 'tcx> {
|
impl<'tcx> PlaceCollector<'_, 'tcx> {
|
||||||
#[tracing::instrument(level = "trace", skip(self))]
|
#[tracing::instrument(level = "trace", skip(self))]
|
||||||
fn register_place(&mut self, place: Place<'tcx>) -> Option<PlaceIndex> {
|
fn register_place(&mut self, place: Place<'tcx>) -> Option<PlaceIndex> {
|
||||||
// Create a place for this projection.
|
// Create a place for this projection.
|
||||||
|
@ -967,7 +967,7 @@ impl<'tcx> PlaceCollector<'_, '_, 'tcx> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'tcx> Visitor<'tcx> for PlaceCollector<'_, '_, 'tcx> {
|
impl<'tcx> Visitor<'tcx> for PlaceCollector<'_, 'tcx> {
|
||||||
#[tracing::instrument(level = "trace", skip(self))]
|
#[tracing::instrument(level = "trace", skip(self))]
|
||||||
fn visit_place(&mut self, place: &Place<'tcx>, ctxt: PlaceContext, _: Location) {
|
fn visit_place(&mut self, place: &Place<'tcx>, ctxt: PlaceContext, _: Location) {
|
||||||
if !ctxt.is_use() {
|
if !ctxt.is_use() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue