diff options
| author | bors <bors@rust-lang.org> | 2018-05-22 12:57:06 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-05-22 12:57:06 +0000 |
| commit | 9f80ea32811db0bdbd05b1bef59f5db26b3e24a9 (patch) | |
| tree | 6a347360749ddc9462a714f5cc00ffdd0efd0cdb /src/libsyntax | |
| parent | ff8fa5cc69db5567b32ceca1ee4ac0dcfa3a81bc (diff) | |
| parent | 2483c812176c8ecca54207517a2ba5500805b205 (diff) | |
| download | rust-9f80ea32811db0bdbd05b1bef59f5db26b3e24a9.tar.gz rust-9f80ea32811db0bdbd05b1bef59f5db26b3e24a9.zip | |
Auto merge of #49172 - oli-obk:const_let, r=eddyb
Allow let bindings and destructuring in constants and const fn r? @eddyb cc https://github.com/rust-lang/rust/issues/48821
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/feature_gate.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index 709c3653b02..3a02646d0af 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -214,6 +214,9 @@ declare_features! ( // Allows the definition of `const fn` functions. (active, const_fn, "1.2.0", Some(24111), None), + // Allows let bindings and destructuring in `const fn` functions and constants. + (active, const_let, "1.22.1", Some(48821), None), + // Allows using #[prelude_import] on glob `use` items. // // rustc internal |
