Extend the renaming to coerce_unsafe_ptr

This commit is contained in:
Bastian Kersting
2025-01-24 14:58:33 +00:00
parent f842ee8245
commit 432ff5e559
8 changed files with 16 additions and 16 deletions

View File

@@ -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 {