diff options
| author | Ralf Jung <post@ralfj.de> | 2024-09-23 21:29:57 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-09-23 22:12:54 +0200 |
| commit | 2787179f53d2b7904a413fc51bfe0e41f539b9b5 (patch) | |
| tree | c37e05766eefc47d041c2d267283848cd3c32234 /library/core/src/ptr/mod.rs | |
| parent | 648d024a7859e1ab7fdffe5e419b6e35ccb16a4a (diff) | |
| download | rust-2787179f53d2b7904a413fc51bfe0e41f539b9b5.tar.gz rust-2787179f53d2b7904a413fc51bfe0e41f539b9b5.zip | |
stabilize const_intrinsic_copy
Diffstat (limited to 'library/core/src/ptr/mod.rs')
| -rw-r--r-- | library/core/src/ptr/mod.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/library/core/src/ptr/mod.rs b/library/core/src/ptr/mod.rs index d4b505c6ae3..cac33a329b9 100644 --- a/library/core/src/ptr/mod.rs +++ b/library/core/src/ptr/mod.rs @@ -1516,11 +1516,7 @@ pub const unsafe fn read<T>(src: *const T) -> T { #[inline] #[stable(feature = "ptr_unaligned", since = "1.17.0")] #[rustc_const_stable(feature = "const_ptr_read", since = "1.71.0")] -#[rustc_allow_const_fn_unstable( - const_mut_refs, - const_maybe_uninit_as_mut_ptr, - const_intrinsic_copy -)] +#[cfg_attr(bootstrap, rustc_allow_const_fn_unstable(const_mut_refs))] #[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces #[rustc_diagnostic_item = "ptr_read_unaligned"] pub const unsafe fn read_unaligned<T>(src: *const T) -> T { |
