X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_feature%2Fsrc%2Factive.rs;h=1ec9a0518b809d7c8c4376530209beee0cd0d534;hb=aa9e6aa8ad96888eb63e391a9d40373283c189b2;hp=a3e40daf6bf6dccaaf22787394abd7b157a5f6e5;hpb=a0dad6bfca5f367f15be62be207687b0a989ea75;p=rust.git diff --git a/compiler/rustc_feature/src/active.rs b/compiler/rustc_feature/src/active.rs index a3e40daf6bf..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), @@ -526,10 +523,6 @@ pub fn set(&self, features: &mut Features, span: Span) { /// Allows using `&mut` in constant functions. (active, const_mut_refs, "1.41.0", Some(57349), None), - /// Allows bindings in the subpattern of a binding pattern. - /// For example, you can write `x @ Some(y)`. - (active, bindings_after_at, "1.41.0", Some(65490), None), - /// Allows `impl const Trait for T` syntax. (active, const_trait_impl, "1.42.0", Some(67792), None), @@ -569,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), @@ -629,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), @@ -684,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 // -------------------------------------------------------------------------