rust/library/core/src/ptr
León Orell Valerian Liehr 15859331d0
Rollup merge of #140511 - mathisbot:master, r=dtolnay
Stabilize `#![feature(non_null_from_ref)]`

This PR stabilizes the following:
```rust
impl<T: ?Sized> NonNull<T> {
    pub const fn from_ref(reference: &T) -> NonNull<T>;
    pub const fn from_mut(reference: &mut T) -> NonNull<T>;
}
```
The feature is tracked in [#130823](https://github.com/rust-lang/rust/issues/130823).
2025-05-18 11:03:44 +02:00
..
alignment.rs library: Use size_of from the prelude instead of imported 2025-03-06 20:20:38 -08:00
const_ptr.rs update version placeholders 2025-05-12 15:33:30 +02:00
metadata.rs Rollup merge of #135080 - Enselic:debug-ptr-metadata, r=thomcc 2025-03-16 13:19:51 +08:00
mod.rs update version placeholders 2025-05-12 15:33:30 +02:00
mut_ptr.rs update version placeholders 2025-05-12 15:33:30 +02:00
non_null.rs Rollup merge of #140511 - mathisbot:master, r=dtolnay 2025-05-18 11:03:44 +02:00
unique.rs Expose Unique::from<NonNull> in const internally 2025-03-26 20:46:07 +00:00