Skip to content

Commit 7859f0e

Browse files
committed
Make PlaceRef lifetimes of Place::as_ref be both 'tcx
1 parent 18c275b commit 7859f0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/mir/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1864,7 +1864,7 @@ impl<'tcx> Place<'tcx> {
18641864
self.as_ref().as_local()
18651865
}
18661866

1867-
pub fn as_ref(&self) -> PlaceRef<'_, 'tcx> {
1867+
pub fn as_ref(&self) -> PlaceRef<'tcx, 'tcx> {
18681868
PlaceRef { local: self.local, projection: &self.projection }
18691869
}
18701870
}

0 commit comments

Comments
 (0)