Skip to content

Commit b4545a4

Browse files
committed
Update
1 parent c0b972a commit b4545a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/interpret/traits.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
113113
ptr_size,
114114
self.tcx.data_layout.pointer_align.abi,
115115
)?.expect("cannot be a ZST");
116-
let fn_ptr = self.memory.get(vtable_slot.alloc_id)?
116+
let fn_ptr = self.memory.get_raw(vtable_slot.alloc_id)?
117117
.read_ptr_sized(self, vtable_slot)?.not_undef()?;
118118
Ok(self.memory.get_fn(fn_ptr)?)
119119
}

0 commit comments

Comments
 (0)