diff options
| author | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2019-09-18 10:27:31 -0700 |
|---|---|---|
| committer | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2019-11-21 14:19:59 -0800 |
| commit | 365d1236890469cff1a55a28eeb9befaf516d552 (patch) | |
| tree | e0c3fcba96bddd1d722b25db1a2338d9517984c1 /src/libsyntax | |
| parent | c537f229009bcec23ac89132fd6f571acbc23c38 (diff) | |
| download | rust-365d1236890469cff1a55a28eeb9befaf516d552.tar.gz rust-365d1236890469cff1a55a28eeb9befaf516d552.zip | |
Add feature gate for const `if` and `match`
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/feature_gate/active.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libsyntax/feature_gate/active.rs b/src/libsyntax/feature_gate/active.rs index bd029514a95..fa0ab90c702 100644 --- a/src/libsyntax/feature_gate/active.rs +++ b/src/libsyntax/feature_gate/active.rs @@ -529,6 +529,9 @@ declare_features! ( /// Allows using the `#[register_attr]` attribute. (active, register_tool, "1.41.0", Some(66079), None), + /// Allows the use of `if` and `match` in constants. + (active, const_if_match, "1.41.0", Some(49146), None), + // ------------------------------------------------------------------------- // feature-group-end: actual feature gates // ------------------------------------------------------------------------- |
