Skip to content

Commit 5091bd7

Browse files
committed
remove retag_box_to_raw, it is no longer needed
1 parent 4650a14 commit 5091bd7

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

core/src/intrinsics.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2709,19 +2709,6 @@ pub unsafe fn vtable_size(_ptr: *const ()) -> usize {
27092709
unreachable!()
27102710
}
27112711

2712-
/// Retag a box pointer as part of casting it to a raw pointer. This is the `Box` equivalent of
2713-
/// `(x: &mut T) as *mut T`. The input pointer must be the pointer of a `Box` (passed as raw pointer
2714-
/// to avoid all questions around move semantics and custom allocators), and `A` must be the `Box`'s
2715-
/// allocator.
2716-
#[unstable(feature = "core_intrinsics", issue = "none")]
2717-
#[rustc_nounwind]
2718-
#[cfg_attr(not(bootstrap), rustc_intrinsic)]
2719-
#[cfg_attr(bootstrap, inline)]
2720-
pub unsafe fn retag_box_to_raw<T: ?Sized, A>(ptr: *mut T) -> *mut T {
2721-
// Miri needs to adjust the provenance, but for regular codegen this is not needed
2722-
ptr
2723-
}
2724-
27252712
// Some functions are defined here because they accidentally got made
27262713
// available in this module on stable. See <https://github.com/rust-lang/rust/issues/15702>.
27272714
// (`transmute` also falls into this category, but it cannot be wrapped due to the

0 commit comments

Comments
 (0)