diff options
| author | bors <bors@rust-lang.org> | 2021-07-28 00:53:17 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-07-28 00:53:17 +0000 |
| commit | 8b50cc9a2c408caef30a1cf950c948509b2f648e (patch) | |
| tree | 44d9a23d35a8ffcd724fd58ece2027d67cb6b270 /compiler/rustc_feature/src | |
| parent | 2faabf579323f5252329264cc53ba9ff803429a3 (diff) | |
| parent | 37af39957399db5a40923827fa54b3814d5e495d (diff) | |
| download | rust-8b50cc9a2c408caef30a1cf950c948509b2f648e.tar.gz rust-8b50cc9a2c408caef30a1cf950c948509b2f648e.zip | |
Auto merge of #85769 - jhpratt:stabilize-const-transmute-union, r=RalfJung
Stabilize `const_fn_transmute`, `const_fn_union` This PR stabilizes the `const_fn_transmute` and `const_fn_union` features. It _does not_ stabilize any methods (obviously aside from `transmute`) that are blocked on only these features. Closes #53605. Closes #51909.
Diffstat (limited to 'compiler/rustc_feature/src')
| -rw-r--r-- | compiler/rustc_feature/src/accepted.rs | 4 | ||||
| -rw-r--r-- | compiler/rustc_feature/src/active.rs | 6 |
2 files changed, 4 insertions, 6 deletions
diff --git a/compiler/rustc_feature/src/accepted.rs b/compiler/rustc_feature/src/accepted.rs index c593009ce67..9ce5a149697 100644 --- a/compiler/rustc_feature/src/accepted.rs +++ b/compiler/rustc_feature/src/accepted.rs @@ -290,6 +290,10 @@ declare_features! ( /// Allows bindings in the subpattern of a binding pattern. /// For example, you can write `x @ Some(y)`. (accepted, bindings_after_at, "1.54.0", Some(65490), None), + /// Allows calling `transmute` in const fn + (accepted, const_fn_transmute, "1.56.0", Some(53605), None), + /// Allows accessing fields of unions inside `const` functions. + (accepted, const_fn_union, "1.56.0", Some(51909), None), // ------------------------------------------------------------------------- // feature-group-end: accepted features diff --git a/compiler/rustc_feature/src/active.rs b/compiler/rustc_feature/src/active.rs index 803e4a2e59d..8ab61a5d200 100644 --- a/compiler/rustc_feature/src/active.rs +++ b/compiler/rustc_feature/src/active.rs @@ -413,9 +413,6 @@ declare_features! ( /// Allows inferring `'static` outlives requirements (RFC 2093). (active, infer_static_outlives_requirements, "1.26.0", Some(54185), None), - /// Allows accessing fields of unions inside `const` functions. - (active, const_fn_union, "1.27.0", Some(51909), None), - /// Allows dereferencing raw pointers during const eval. (active, const_raw_ptr_deref, "1.27.0", Some(51911), None), @@ -565,9 +562,6 @@ declare_features! ( /// Lazily evaluate constants. This allows constants to depend on type parameters. (incomplete, lazy_normalization_consts, "1.46.0", Some(72219), None), - /// Allows calling `transmute` in const fn - (active, const_fn_transmute, "1.46.0", Some(53605), None), - /// Allows `if let` guard in match arms. (incomplete, if_let_guard, "1.47.0", Some(51114), None), |
