1
Fork 0

miri: do not apply aliasing restrictions to Box with custom allocator

This commit is contained in:
Ralf Jung 2024-03-09 13:05:13 +01:00
parent 1b427b3bf7
commit e632e3f9a5
12 changed files with 250 additions and 35 deletions

View file

@ -657,6 +657,10 @@ pub fn check_intrinsic_type(
sym::simd_shuffle => (3, 0, vec![param(0), param(0), param(1)], param(2)),
sym::simd_shuffle_generic => (2, 1, vec![param(0), param(0)], param(1)),
sym::retag_box_to_raw => {
(2, 0, vec![Ty::new_mut_ptr(tcx, param(0))], Ty::new_mut_ptr(tcx, param(0)))
}
other => {
tcx.dcx().emit_err(UnrecognizedIntrinsicFunction { span, name: other });
return;