about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-07-30 08:25:36 +0000
committerbors <bors@rust-lang.org>2018-07-30 08:25:36 +0000
commit5ed2b5120bd875a7eb9fd8545d86eb1de1e41bce (patch)
tree95f28fc8063ad27da783da4589d601d3e06a1220 /src/libsyntax
parent7bbcd005b30582d07f1a39dcf50f77b54e055828 (diff)
parent336cf9db5f1c6efb0e2a6fe6e45a0716fd702188 (diff)
downloadrust-5ed2b5120bd875a7eb9fd8545d86eb1de1e41bce.tar.gz
rust-5ed2b5120bd875a7eb9fd8545d86eb1de1e41bce.zip
Auto merge of #52722 - alexcrichton:more-identifier-lints, r=oli-obk
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 087fec09719..40fb2c69e57 100644
--- a/src/libsyntax/feature_gate.rs
+++ b/src/libsyntax/feature_gate.rs
@@ -412,7 +412,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),