about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2017-02-23 21:35:12 +0100
committerest31 <MTest31@outlook.com>2017-02-23 22:32:25 +0100
commitf753a6ef0252689930fbfdf39859bf80c0388955 (patch)
treea63bd2d51e75698d2b0c4b913c17730492cf29b6 /src/libsyntax
parent1b9b32288369dbd13a9d721d6765ddc30d29e8c1 (diff)
downloadrust-f753a6ef0252689930fbfdf39859bf80c0388955.tar.gz
rust-f753a6ef0252689930fbfdf39859bf80c0388955.zip
Feature gate
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/feature_gate.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs
index 1bed3e27847..2d3fd78867a 100644
--- a/src/libsyntax/feature_gate.rs
+++ b/src/libsyntax/feature_gate.rs
@@ -325,6 +325,10 @@ declare_features! (
 
     // Used to identify crates that contain sanitizer runtimes
     // rustc internal
+    (active, closure_to_fn_coercion, "1.17.0", Some(39817)),
+
+    // Used to identify crates that contain sanitizer runtimes
+    // rustc internal
     (active, sanitizer_runtime, "1.17.0", None),
 );
 
@@ -977,6 +981,9 @@ pub const EXPLAIN_DERIVE_UNDERSCORE: &'static str =
 pub const EXPLAIN_PLACEMENT_IN: &'static str =
     "placement-in expression syntax is experimental and subject to change.";
 
+pub const CLOSURE_TO_FN_COERCION: &'static str =
+    "non-capturing closure to fn coercion is experimental";
+
 struct PostExpansionVisitor<'a> {
     context: &'a Context<'a>,
 }