rust/library/core/src/ptr
Scott McMurray 61517dbbe6 Avoid a cast in ptr::slice_from_raw_parts(_mut)
Casting to `*const ()` or `*mut ()` just bloats the MIR, so let's not.

If ACP#362 goes through we can keep calling `ptr::from_raw_parts(_mut)` in these also without the cast, but that hasn't had any libs-api attention yet, so I'm not waiting on it.
2024-05-06 01:53:54 -07:00
..
alignment.rs Import the 2021 prelude in the core crate 2024-03-25 13:12:06 -07:00
const_ptr.rs Rollup merge of #122492 - GrigorenkoPV:ptr_as_ref_unchecked, r=workingjubilee 2024-05-03 20:33:44 +02:00
metadata.rs Step bootstrap cfgs 2024-05-01 22:19:11 -04:00
mod.rs Avoid a cast in ptr::slice_from_raw_parts(_mut) 2024-05-06 01:53:54 -07:00
mut_ptr.rs Rollup merge of #122492 - GrigorenkoPV:ptr_as_ref_unchecked, r=workingjubilee 2024-05-03 20:33:44 +02:00
non_null.rs Replace version placeholders for 1.79 2024-05-01 21:01:51 -04:00
unique.rs Add and use Unique::as_non_null_ptr 2024-02-08 19:56:30 -05:00