File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -2709,19 +2709,6 @@ pub unsafe fn vtable_size(_ptr: *const ()) -> usize {
2709
2709
unreachable ! ( )
2710
2710
}
2711
2711
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
-
2725
2712
// Some functions are defined here because they accidentally got made
2726
2713
// available in this module on stable. See <https://github.com/rust-lang/rust/issues/15702>.
2727
2714
// (`transmute` also falls into this category, but it cannot be wrapped due to the
You can’t perform that action at this time.
0 commit comments