mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 21:47:15 +03:00
rustup for projection interning
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
||||
8e0007f829661e57d008d2e908c95f6e84b04b25
|
||||
084edc426f2e7e4bbedb5c6afa7fc422a52ee379
|
||||
|
||||
+2
-1
@@ -5,6 +5,7 @@
|
||||
use rustc::mir;
|
||||
use rustc::ty::{
|
||||
self,
|
||||
List,
|
||||
layout::{self, LayoutOf, Size, TyLayout},
|
||||
};
|
||||
|
||||
@@ -75,7 +76,7 @@ fn test_null(&self, val: Scalar<Tag>) -> InterpResult<'tcx, Option<Scalar<Tag>>>
|
||||
/// Get the `Place` for a local
|
||||
fn local_place(&mut self, local: mir::Local) -> InterpResult<'tcx, PlaceTy<'tcx, Tag>> {
|
||||
let this = self.eval_context_mut();
|
||||
let place = mir::Place { base: mir::PlaceBase::Local(local), projection: Box::new([]) };
|
||||
let place = mir::Place { base: mir::PlaceBase::Local(local), projection: List::empty() };
|
||||
this.eval_place(&place)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user