about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2018-07-25 17:26:58 -0700
committerAlex Crichton <alex@alexcrichton.com>2018-07-26 14:14:10 -0700
commit336cf9db5f1c6efb0e2a6fe6e45a0716fd702188 (patch)
treee159aa6c1cc03ec1d45e06c878b3919310714a2f /src/libsyntax
parente842dea7a3d9babc7a19bd201711f4243840fab0 (diff)
downloadrust-336cf9db5f1c6efb0e2a6fe6e45a0716fd702188.tar.gz
rust-336cf9db5f1c6efb0e2a6fe6e45a0716fd702188.zip
Tweak the raw_identifiers lints in 2018
* Enable the `raw_identifiers` feature automatically in the 2018 preview
* Only emit lint warnings if the `raw_identifiers` feature is activated

cc rust-lang/cargo#5783
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/feature_gate.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs
index 30137439e77..27af8fc4175 100644
--- a/src/libsyntax/feature_gate.rs
+++ b/src/libsyntax/feature_gate.rs
@@ -409,7 +409,7 @@ declare_features! (
     (active, underscore_imports, "1.26.0", Some(48216), None),
 
     // Allows keywords to be escaped for use as identifiers
-    (active, raw_identifiers, "1.26.0", Some(48589), None),
+    (active, raw_identifiers, "1.26.0", Some(48589), Some(Edition::Edition2018)),
 
     // Allows macro invocations in `extern {}` blocks
     (active, macros_in_extern, "1.27.0", Some(49476), None),