X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_feature%2Fsrc%2Factive.rs;h=1ec9a0518b809d7c8c4376530209beee0cd0d534;hb=aa9e6aa8ad96888eb63e391a9d40373283c189b2;hp=952fe3f9f818808f2f047ce2045c0fdd5ffb2feb;hpb=99a6474bc45c66823972da3e4e23dc4cf47dd79a;p=rust.git diff --git a/compiler/rustc_feature/src/active.rs b/compiler/rustc_feature/src/active.rs index 952fe3f9f81..1ec9a0518b8 100644 --- a/compiler/rustc_feature/src/active.rs +++ b/compiler/rustc_feature/src/active.rs @@ -413,9 +413,6 @@ pub fn set(&self, features: &mut Features, span: Span) { /// 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), @@ -489,7 +486,7 @@ pub fn set(&self, features: &mut Features, span: Span) { (active, async_closure, "1.37.0", Some(62290), None), /// Allows `impl Trait` to be used inside type aliases (RFC 2515). - (incomplete, type_alias_impl_trait, "1.38.0", Some(63063), None), + (active, type_alias_impl_trait, "1.38.0", Some(63063), None), /// Allows the definition of `const extern fn` and `const unsafe extern fn`. (active, const_extern_fn, "1.40.0", Some(64926), None), @@ -565,9 +562,6 @@ pub fn set(&self, features: &mut Features, span: Span) { /// 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), @@ -625,9 +619,6 @@ pub fn set(&self, features: &mut Features, span: Span) { /// Allows macro attributes to observe output of `#[derive]`. (active, macro_attributes_in_derive_output, "1.51.0", Some(81119), None), - /// Allows the use of type alias impl trait in function return positions - (active, min_type_alias_impl_trait, "1.52.0", Some(63063), None), - /// Allows associated types in inherent impls. (incomplete, inherent_associated_types, "1.52.0", Some(8995), None), @@ -680,6 +671,18 @@ pub fn set(&self, features: &mut Features, span: Span) { /// Allows `cfg(target_abi = "...")`. (active, cfg_target_abi, "1.55.0", Some(80970), None), + /// Infer generic args for both consts and types. + (active, generic_arg_infer, "1.55.0", Some(85077), None), + + /// Allows `#[derive(Default)]` and `#[default]` on enums. + (active, derive_default_enum, "1.56.0", Some(86985), None), + + /// Allows `for _ in _` loops in const contexts. + (active, const_for, "1.56.0", Some(87575), None), + + /// Allows the `?` operator in const contexts. + (active, const_try, "1.56.0", Some(74935), None), + // ------------------------------------------------------------------------- // feature-group-end: actual feature gates // -------------------------------------------------------------------------