rust/library/core/src/ptr
Jacob Pratt de2cb0d76c
Rollup merge of #123206 - stepancheg:pointee-metadata-freeze, r=Amanieu
Require Pointee::Metadata to be Freeze

So pointee metadata can be used in anonymous statics.

This is prerequisite for implementing ThinBox without allocation for ZST.

See https://github.com/rust-lang/rust/pull/123184#discussion_r1544627488

r? joboet
2024-04-04 21:16:55 -04:00
..
alignment.rs Import the 2021 prelude in the core crate 2024-03-25 13:12:06 -07:00
const_ptr.rs rename expose_addr to expose_provenance 2024-04-03 16:00:38 +02:00
metadata.rs Require Pointee::Metadata to be Freeze 2024-03-31 03:35:17 +01:00
mod.rs rename expose_addr to expose_provenance 2024-04-03 16:00:38 +02:00
mut_ptr.rs rename expose_addr to expose_provenance 2024-04-03 16:00:38 +02:00
non_null.rs stabilize ptr.is_aligned, move ptr.is_aligned_to to a new feature gate 2024-03-29 19:59:46 -04:00
unique.rs Add and use Unique::as_non_null_ptr 2024-02-08 19:56:30 -05:00