From 0cdbeaa2a3a2d17ed20122dc310f198e58402aa2 Mon Sep 17 00:00:00 2001 From: Jacob Pratt Date: Tue, 5 Oct 2021 04:55:57 -0400 Subject: Stabilize `const_raw_ptr_deref` for `*const T` This stabilizes dereferencing immutable raw pointers in const contexts. It does not stabilize `*mut T` dereferencing. This is placed behind the `const_raw_mut_ptr_deref` feature gate. --- library/std/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'library/std/src/lib.rs') diff --git a/library/std/src/lib.rs b/library/std/src/lib.rs index c2243b25953..eb832550479 100644 --- a/library/std/src/lib.rs +++ b/library/std/src/lib.rs @@ -264,7 +264,8 @@ #![feature(const_ipv4)] #![feature(const_ipv6)] #![feature(const_option)] -#![feature(const_raw_ptr_deref)] +#![cfg_attr(bootstrap, feature(const_raw_ptr_deref))] +#![cfg_attr(not(bootstrap), feature(const_mut_refs))] #![feature(const_socketaddr)] #![feature(const_trait_impl)] #![feature(container_error_extra)] -- cgit 1.4.1-3-g733a5