Add feature gates for for and ? in consts

This commit is contained in:
Jonas Schievink 2021-07-18 03:34:50 +02:00
parent a985d8e6c7
commit dbd126901a
8 changed files with 91 additions and 4 deletions

View file

@ -677,6 +677,12 @@ declare_features! (
/// 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.55.0", None, None),
/// Allows the `?` operator in const contexts.
(active, const_try, "1.55.0", None, None),
// -------------------------------------------------------------------------
// feature-group-end: actual feature gates
// -------------------------------------------------------------------------