diff options
| author | Bastian Kersting <bkersting@google.com> | 2025-01-24 14:58:33 +0000 |
|---|---|---|
| committer | Bastian Kersting <bkersting@google.com> | 2025-02-10 13:01:55 +0000 |
| commit | 432ff5e5599d7d2de01db6a2d66c3a6e18e2c7ba (patch) | |
| tree | 96afb2804444cc017570918709b8de6147779b04 /compiler/rustc_codegen_cranelift/src/base.rs | |
| parent | f842ee824534e2dbf3c2976f8007890b2238e3c5 (diff) | |
| download | rust-432ff5e5599d7d2de01db6a2d66c3a6e18e2c7ba.tar.gz rust-432ff5e5599d7d2de01db6a2d66c3a6e18e2c7ba.zip | |
Extend the renaming to coerce_unsafe_ptr
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src/base.rs')
| -rw-r--r-- | compiler/rustc_codegen_cranelift/src/base.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/base.rs b/compiler/rustc_codegen_cranelift/src/base.rs index a2b9e5712e5..125a9201831 100644 --- a/compiler/rustc_codegen_cranelift/src/base.rs +++ b/compiler/rustc_codegen_cranelift/src/base.rs @@ -900,8 +900,8 @@ fn codegen_stmt<'tcx>( }; let data = codegen_operand(fx, data); let meta = codegen_operand(fx, meta); - assert!(data.layout().ty.is_unsafe_ptr()); - assert!(layout.ty.is_unsafe_ptr()); + assert!(data.layout().ty.is_raw_ptr()); + assert!(layout.ty.is_raw_ptr()); let ptr_val = if meta.layout().is_zst() { data.cast_pointer_to(layout) } else { |
