X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_feature%2Fsrc%2Factive.rs;h=1ec9a0518b809d7c8c4376530209beee0cd0d534;hb=aa9e6aa8ad96888eb63e391a9d40373283c189b2;hp=bf99d2988178d0d61ae9ca6a07081b2d3e4058a3;hpb=7985e4c7c3fb9c1a4f09f1c24949f21e65ceee37;p=rust.git diff --git a/compiler/rustc_feature/src/active.rs b/compiler/rustc_feature/src/active.rs index bf99d298817..1ec9a0518b8 100644 --- a/compiler/rustc_feature/src/active.rs +++ b/compiler/rustc_feature/src/active.rs @@ -677,6 +677,12 @@ pub fn set(&self, features: &mut Features, span: Span) { /// 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 // -------------------------------------------------------------------------