diff options
| author | Urgau <urgau@numericable.fr> | 2024-10-03 15:05:23 +0200 |
|---|---|---|
| committer | Urgau <urgau@numericable.fr> | 2024-10-04 14:06:48 +0200 |
| commit | 018ba0528fa5d22712397e520351295f8582a525 (patch) | |
| tree | 1c1520315d2b4c41b3a57d9fc9929e27916a0ce0 /compiler/rustc_const_eval | |
| parent | f7c8928f035370be33463bb7f1cd1aeca2c5f898 (diff) | |
| download | rust-018ba0528fa5d22712397e520351295f8582a525.tar.gz rust-018ba0528fa5d22712397e520351295f8582a525.zip | |
Use wide pointers consistenly across the compiler
Diffstat (limited to 'compiler/rustc_const_eval')
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/cast.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/cast.rs b/compiler/rustc_const_eval/src/interpret/cast.rs index 565a7d16242..30b5a8d70bc 100644 --- a/compiler/rustc_const_eval/src/interpret/cast.rs +++ b/compiler/rustc_const_eval/src/interpret/cast.rs @@ -204,12 +204,12 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> { ) -> InterpResult<'tcx, ImmTy<'tcx, M::Provenance>> { assert!(src.layout.ty.is_any_ptr()); assert!(cast_to.ty.is_unsafe_ptr()); - // Handle casting any ptr to raw ptr (might be a fat ptr). + // Handle casting any ptr to raw ptr (might be a wide ptr). if cast_to.size == src.layout.size { - // Thin or fat pointer that just has the ptr kind of target type changed. + // Thin or wide pointer that just has the ptr kind of target type changed. return interp_ok(ImmTy::from_immediate(**src, cast_to)); } else { - // Casting the metadata away from a fat ptr. + // Casting the metadata away from a wide ptr. assert_eq!(src.layout.size, 2 * self.pointer_size()); assert_eq!(cast_to.size, self.pointer_size()); assert!(src.layout.ty.is_unsafe_ptr()); |
