about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorTobias Schottdorf <tobias.schottdorf@gmail.com>2017-03-11 10:54:45 -0500
committerTobias Schottdorf <tobias.schottdorf@gmail.com>2017-03-14 11:06:50 -0400
commitb43c744318b76934cdbcc0c8a4fdbc7d0091bbd8 (patch)
tree47ba83b177bf4e315a7698f8777af2983e16df18 /src/libsyntax
parent6f10e2f63de720468e2b4bfcb275e4b90b1f9870 (diff)
downloadrust-b43c744318b76934cdbcc0c8a4fdbc7d0091bbd8.tar.gz
rust-b43c744318b76934cdbcc0c8a4fdbc7d0091bbd8.zip
Add feature toggle for rvalue-static-promotion RFC
See https://github.com/rust-lang/rfcs/pull/1414.

Updates #38865.
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/feature_gate.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs
index 15913d56d16..59e9ab30e0e 100644
--- a/src/libsyntax/feature_gate.rs
+++ b/src/libsyntax/feature_gate.rs
@@ -342,6 +342,9 @@ declare_features! (
 
     // Allows the `catch {...}` expression
     (active, catch_expr, "1.17.0", Some(31436)),
+
+    // See rust-lang/rfcs#1414. Allows code like `let x: &'static u32 = &42` to work.
+    (active, rvalue_static_promotion, "1.15.1", Some(38865)),
 );
 
 declare_features! (