about summary refs log tree commit diff
path: root/src/librustc/ty
diff options
context:
space:
mode:
authorSantiago Pastorino <spastorino@gmail.com>2019-12-11 16:50:03 -0300
committerOliver Scherer <github35764891676564198441@oli-obk.de>2020-01-10 09:08:25 +0100
commit5d9b39904436f6f20e34e85a4e06384116080f56 (patch)
tree4b1a69935dc518c2d39919ea4e7360e2687313f1 /src/librustc/ty
parentfd5aa32c352d9aa7e652a64320f89b7f3859858b (diff)
downloadrust-5d9b39904436f6f20e34e85a4e06384116080f56.tar.gz
rust-5d9b39904436f6f20e34e85a4e06384116080f56.zip
Remove PlaceBase enum and make Place base field be local: Local
Diffstat (limited to 'src/librustc/ty')
-rw-r--r--src/librustc/ty/codec.rs4
-rw-r--r--src/librustc/ty/context.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc/ty/codec.rs b/src/librustc/ty/codec.rs
index c691cb44f01..df1602b2ac4 100644
--- a/src/librustc/ty/codec.rs
+++ b/src/librustc/ty/codec.rs
@@ -226,11 +226,11 @@ pub fn decode_place<D>(decoder: &mut D) -> Result<mir::Place<'tcx>, D::Error>
 where
     D: TyDecoder<'tcx>,
 {
-    let base: mir::PlaceBase = Decodable::decode(decoder)?;
+    let local: mir::Local = Decodable::decode(decoder)?;
     let len = decoder.read_usize()?;
     let projection: &'tcx List<mir::PlaceElem<'tcx>> =
         decoder.tcx().mk_place_elems((0..len).map(|_| Decodable::decode(decoder)))?;
-    Ok(mir::Place { base, projection })
+    Ok(mir::Place { local, projection })
 }
 
 #[inline]
diff --git a/src/librustc/ty/context.rs b/src/librustc/ty/context.rs
index 17f5b98ab20..52a151439dc 100644
--- a/src/librustc/ty/context.rs
+++ b/src/librustc/ty/context.rs
@@ -2434,7 +2434,7 @@ impl<'tcx> TyCtxt<'tcx> {
         let mut projection = place.projection.to_vec();
         projection.push(elem);
 
-        Place { base: place.base, projection: self.intern_place_elems(&projection) }
+        Place { local: place.local, projection: self.intern_place_elems(&projection) }
     }
 
     pub fn intern_existential_predicates(