about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSantiago Pastorino <spastorino@gmail.com>2020-03-02 21:47:33 -0300
committerSantiago Pastorino <spastorino@gmail.com>2020-03-02 21:47:33 -0300
commit7859f0eac3b70fea1f129665d0b9f4c56769fa4c (patch)
tree7376ba15b9205124bb71ce8a23ae8aad4f805d30
parent18c275b423f9f13c0e404ae3804967d2ab66337c (diff)
downloadrust-7859f0eac3b70fea1f129665d0b9f4c56769fa4c.tar.gz
rust-7859f0eac3b70fea1f129665d0b9f4c56769fa4c.zip
Make PlaceRef lifetimes of Place::as_ref be both 'tcx
-rw-r--r--src/librustc/mir/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/mir/mod.rs b/src/librustc/mir/mod.rs
index 668240ab42b..0d429d8879b 100644
--- a/src/librustc/mir/mod.rs
+++ b/src/librustc/mir/mod.rs
@@ -1864,7 +1864,7 @@ impl<'tcx> Place<'tcx> {
         self.as_ref().as_local()
     }
 
-    pub fn as_ref(&self) -> PlaceRef<'_, 'tcx> {
+    pub fn as_ref(&self) -> PlaceRef<'tcx, 'tcx> {
         PlaceRef { local: self.local, projection: &self.projection }
     }
 }