diff options
| author | bors <bors@rust-lang.org> | 2021-11-13 17:10:15 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-11-13 17:10:15 +0000 |
| commit | d212d902ae8d29e31b32641096f7848a4bb35522 (patch) | |
| tree | f74a388c0cd5dddb03d6ef2e2463a6aeff697162 /compiler/rustc_feature/src | |
| parent | 1b12d01903293453dd94aa170c82caf94415629f (diff) | |
| parent | 0cdbeaa2a3a2d17ed20122dc310f198e58402aa2 (diff) | |
| download | rust-d212d902ae8d29e31b32641096f7848a4bb35522.tar.gz rust-d212d902ae8d29e31b32641096f7848a4bb35522.zip | |
Auto merge of #89551 - jhpratt:stabilize-const_raw_ptr_deref, r=oli-obk
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 behind the same feature gate as mutable references. closes https://github.com/rust-lang/rust/issues/51911
Diffstat (limited to 'compiler/rustc_feature/src')
| -rw-r--r-- | compiler/rustc_feature/src/accepted.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_feature/src/active.rs | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/compiler/rustc_feature/src/accepted.rs b/compiler/rustc_feature/src/accepted.rs index 941d957103c..3bd1272c7cb 100644 --- a/compiler/rustc_feature/src/accepted.rs +++ b/compiler/rustc_feature/src/accepted.rs @@ -299,6 +299,8 @@ declare_features! ( (accepted, const_panic, "1.57.0", Some(51999), None), /// Lessens the requirements for structs to implement `Unsize`. (accepted, relaxed_struct_unsize, "1.58.0", Some(81793), None), + /// Allows dereferencing raw pointers during const eval. + (accepted, const_raw_ptr_deref, "1.58.0", Some(51911), None), // ------------------------------------------------------------------------- // feature-group-end: accepted features diff --git a/compiler/rustc_feature/src/active.rs b/compiler/rustc_feature/src/active.rs index 0266b7844ba..d8b4539d831 100644 --- a/compiler/rustc_feature/src/active.rs +++ b/compiler/rustc_feature/src/active.rs @@ -408,9 +408,6 @@ declare_features! ( /// Allows inferring `'static` outlives requirements (RFC 2093). (active, infer_static_outlives_requirements, "1.26.0", Some(54185), None), - /// Allows dereferencing raw pointers during const eval. - (active, const_raw_ptr_deref, "1.27.0", Some(51911), None), - /// Allows inconsistent bounds in where clauses. (active, trivial_bounds, "1.28.0", Some(48214), None), |
