about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift/src/vtable.rs
diff options
context:
space:
mode:
authorBastian Kersting <bkersting@google.com>2025-01-24 14:58:33 +0000
committerBastian Kersting <bkersting@google.com>2025-02-10 13:01:55 +0000
commit432ff5e5599d7d2de01db6a2d66c3a6e18e2c7ba (patch)
tree96afb2804444cc017570918709b8de6147779b04 /compiler/rustc_codegen_cranelift/src/vtable.rs
parentf842ee824534e2dbf3c2976f8007890b2238e3c5 (diff)
downloadrust-432ff5e5599d7d2de01db6a2d66c3a6e18e2c7ba.tar.gz
rust-432ff5e5599d7d2de01db6a2d66c3a6e18e2c7ba.zip
Extend the renaming to coerce_unsafe_ptr
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src/vtable.rs')
-rw-r--r--compiler/rustc_codegen_cranelift/src/vtable.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/vtable.rs b/compiler/rustc_codegen_cranelift/src/vtable.rs
index a460023b59c..9d9e0462a9b 100644
--- a/compiler/rustc_codegen_cranelift/src/vtable.rs
+++ b/compiler/rustc_codegen_cranelift/src/vtable.rs
@@ -48,7 +48,7 @@ pub(crate) fn get_ptr_and_method_ref<'tcx>(
 ) -> (Pointer, Value) {
     let (ptr, vtable) = 'block: {
         if let BackendRepr::Scalar(_) = arg.layout().backend_repr {
-            while !arg.layout().ty.is_unsafe_ptr() && !arg.layout().ty.is_ref() {
+            while !arg.layout().ty.is_raw_ptr() && !arg.layout().ty.is_ref() {
                 let (idx, _) = arg
                     .layout()
                     .non_1zst_field(fx)