diff options
| author | Santiago Pastorino <spastorino@gmail.com> | 2020-03-04 18:25:03 -0300 |
|---|---|---|
| committer | Santiago Pastorino <spastorino@gmail.com> | 2020-03-04 18:25:03 -0300 |
| commit | b11cd0b587cc2a663ef358089a2d1cf709170371 (patch) | |
| tree | a347ccda7ef4a63fc4751b9f5a194ca0d211055f /src/librustc | |
| parent | 2cb2559c18c2d494710ab67324cdc73c4be7a46f (diff) | |
| download | rust-b11cd0b587cc2a663ef358089a2d1cf709170371.tar.gz rust-b11cd0b587cc2a663ef358089a2d1cf709170371.zip | |
PlaceRef<'a, 'tcx> -> PlaceRef<'tcx>
Diffstat (limited to 'src/librustc')
| -rw-r--r-- | src/librustc/mir/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/librustc/mir/mod.rs b/src/librustc/mir/mod.rs index 0d429d8879b..ca97366f514 100644 --- a/src/librustc/mir/mod.rs +++ b/src/librustc/mir/mod.rs @@ -1827,9 +1827,9 @@ rustc_index::newtype_index! { } #[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)] -pub struct PlaceRef<'a, 'tcx> { +pub struct PlaceRef<'tcx> { pub local: Local, - pub projection: &'a [PlaceElem<'tcx>], + pub projection: &'tcx [PlaceElem<'tcx>], } impl<'tcx> Place<'tcx> { @@ -1864,7 +1864,7 @@ impl<'tcx> Place<'tcx> { self.as_ref().as_local() } - pub fn as_ref(&self) -> PlaceRef<'tcx, 'tcx> { + pub fn as_ref(&self) -> PlaceRef<'tcx> { PlaceRef { local: self.local, projection: &self.projection } } } @@ -1875,7 +1875,7 @@ impl From<Local> for Place<'_> { } } -impl<'a, 'tcx> PlaceRef<'a, 'tcx> { +impl<'tcx> PlaceRef<'tcx> { /// Finds the innermost `Local` from this `Place`, *if* it is either a local itself or /// a single deref of a local. // |
