diff options
| author | Jacob Pratt <jacob@jhpratt.dev> | 2021-06-03 02:16:56 -0400 |
|---|---|---|
| committer | Jacob Pratt <jacob@jhpratt.dev> | 2021-07-27 16:03:33 -0400 |
| commit | 7bf791d162705447b97819c16d286dec2a3f34f1 (patch) | |
| tree | 1abc5e1bd9283ff169896d964ff72213b921964e /compiler/rustc_feature/src | |
| parent | 36f02f352392f216d778808818d0e4ed56714f3c (diff) | |
| download | rust-7bf791d162705447b97819c16d286dec2a3f34f1.tar.gz rust-7bf791d162705447b97819c16d286dec2a3f34f1.zip | |
Stabilize `const_fn_union`
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 96d81f67bc2..9ce5a149697 100644 --- a/compiler/rustc_feature/src/accepted.rs +++ b/compiler/rustc_feature/src/accepted.rs @@ -292,6 +292,8 @@ declare_features! ( (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 deeaa0d7096..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), |
