diff options
| author | Michael Goulet <michael@errs.io> | 2023-02-07 18:02:20 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-02-07 19:05:53 +0000 |
| commit | 2b70cbb8a5935a8fbc8d52d7e8304f8eefeb2d21 (patch) | |
| tree | beebf4de8b250b53ee1fa19316ff66f701c774e9 /compiler/rustc_const_eval/src | |
| parent | e1eaa2d5d4d1f5b7b89561a940718058d414e89c (diff) | |
| download | rust-2b70cbb8a5935a8fbc8d52d7e8304f8eefeb2d21.tar.gz rust-2b70cbb8a5935a8fbc8d52d7e8304f8eefeb2d21.zip | |
Rename PointerSized to PointerLike
Diffstat (limited to 'compiler/rustc_const_eval/src')
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/cast.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/cast.rs b/compiler/rustc_const_eval/src/interpret/cast.rs index b2c847d3fd8..fc8e0c67ae0 100644 --- a/compiler/rustc_const_eval/src/interpret/cast.rs +++ b/compiler/rustc_const_eval/src/interpret/cast.rs @@ -126,7 +126,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> { let vtable = self.get_vtable_ptr(src.layout.ty, data.principal())?; let vtable = Scalar::from_maybe_pointer(vtable, self); let data = self.read_immediate(src)?.to_scalar(); - let _assert_pointer_sized = data.to_pointer(self)?; + let _assert_pointer_like = data.to_pointer(self)?; let val = Immediate::ScalarPair(data, vtable); self.write_immediate(val, dest)?; } else { |
