about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorMasaki Hara <ackie.h.gmai@gmail.com>2017-06-24 16:20:27 +0900
committerMasaki Hara <ackie.h.gmai@gmail.com>2017-06-29 21:25:35 +0900
commit03660b647690c3dea12a20468f9f798bacd14d82 (patch)
treed132feb401ad434efda260612205aaff4ce1d84a /src/libsyntax
parentb0bf1b46820d74c30a725a7ea332305098bf3def (diff)
downloadrust-03660b647690c3dea12a20468f9f798bacd14d82.tar.gz
rust-03660b647690c3dea12a20468f9f798bacd14d82.zip
Move unsized_tuple_coercion behind a feature gate.
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/feature_gate.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs
index 74bf19b841e..5de9062de74 100644
--- a/src/libsyntax/feature_gate.rs
+++ b/src/libsyntax/feature_gate.rs
@@ -357,6 +357,9 @@ declare_features! (
 
     // Allows a test to fail without failing the whole suite
     (active, allow_fail, "1.19.0", Some(42219)),
+
+    // Allows unsized tuple coercion.
+    (active, unsized_tuple_coercion, "1.20.0", None),
 );
 
 declare_features! (
@@ -1041,6 +1044,9 @@ pub const EXPLAIN_VIS_MATCHER: &'static str =
 pub const EXPLAIN_PLACEMENT_IN: &'static str =
     "placement-in expression syntax is experimental and subject to change.";
 
+pub const EXPLAIN_UNSIZED_TUPLE_COERCION: &'static str =
+    "Unsized tuple coercion is not stable enough for use and is subject to change";
+
 struct PostExpansionVisitor<'a> {
     context: &'a Context<'a>,
 }