diff options
| author | bors <bors@rust-lang.org> | 2019-07-18 20:41:40 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-07-18 20:41:40 +0000 |
| commit | a3369981deff35f1c8d9a29e99358593959bd06e (patch) | |
| tree | 089b75e27e6cad0354cdd93f52b46870c5338994 /src/libsyntax/feature_gate.rs | |
| parent | 311376d30dc1cfa622142a9f50317b1e0cb4608a (diff) | |
| parent | 4b1bc2ded91915e232c38cc503b5f110556cf719 (diff) | |
| download | rust-a3369981deff35f1c8d9a29e99358593959bd06e.tar.gz rust-a3369981deff35f1c8d9a29e99358593959bd06e.zip | |
Auto merge of #61749 - davidtwco:rfc-2203-const-array-repeat-exprs, r=eddyb
rustc/rustc_mir: Implement RFC 2203. This PR implements RFC 2203, allowing constants in array repeat expressions. Part of #49147. r? @eddyb
Diffstat (limited to 'src/libsyntax/feature_gate.rs')
| -rw-r--r-- | src/libsyntax/feature_gate.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index ed7d6c35fb9..6a3f58ec89e 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -559,10 +559,10 @@ declare_features! ( // Allows `if/while p && let q = r && ...` chains. (active, let_chains, "1.37.0", Some(53667), None), - // #[repr(transparent)] on enums. + // Allows #[repr(transparent)] on enums (RFC 2645). (active, transparent_enums, "1.37.0", Some(60405), None), - // #[repr(transparent)] on unions. + // Allows #[repr(transparent)] on unions (RFC 2645). (active, transparent_unions, "1.37.0", Some(60405), None), // Allows explicit discriminants on non-unit enum variants. @@ -577,6 +577,9 @@ declare_features! ( // Allows the use of `#[cfg(doctest)]`, set when rustdoc is collecting doctests (active, cfg_doctest, "1.37.0", Some(62210), None), + // Allows `[x; N]` where `x` is a constant (RFC 2203). + (active, const_in_array_repeat_expressions, "1.37.0", Some(49147), None), + // ------------------------------------------------------------------------- // feature-group-end: actual feature gates // ------------------------------------------------------------------------- |
