about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src/const_eval
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2022-07-14 20:32:45 -0400
committerRalf Jung <post@ralfj.de>2022-07-15 11:54:20 -0400
commitc4cb043f063fb75d2278ebedeb13feaa94dc8c95 (patch)
tree7f834d6818d59331205148b34e37aee3fe057593 /compiler/rustc_const_eval/src/const_eval
parent6c6cccdd9b7f9c4a4fee19cf7881fbef081eda71 (diff)
downloadrust-c4cb043f063fb75d2278ebedeb13feaa94dc8c95.tar.gz
rust-c4cb043f063fb75d2278ebedeb13feaa94dc8c95.zip
interpret/visitor: support visiting with a PlaceTy
Diffstat (limited to 'compiler/rustc_const_eval/src/const_eval')
-rw-r--r--compiler/rustc_const_eval/src/const_eval/valtrees.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/const_eval/valtrees.rs b/compiler/rustc_const_eval/src/const_eval/valtrees.rs
index 2288a4e7b6c..8fff4571d12 100644
--- a/compiler/rustc_const_eval/src/const_eval/valtrees.rs
+++ b/compiler/rustc_const_eval/src/const_eval/valtrees.rs
@@ -436,7 +436,7 @@ fn valtree_into_mplace<'tcx>(
 
                         let offset = place_adjusted.layout.fields.offset(i);
                         place
-                            .offset(
+                            .offset_with_meta(
                                 offset,
                                 MemPlaceMeta::Meta(Scalar::from_machine_usize(
                                     num_elems as u64,