diff options
| author | Alexander Regueiro <alexreg@me.com> | 2018-08-09 21:51:12 +0100 |
|---|---|---|
| committer | Alexander Regueiro <alexreg@me.com> | 2018-08-20 21:57:56 +0100 |
| commit | e221fcce66ed8fd9e7c89988596d28e768193f98 (patch) | |
| tree | e046b5f37b202e70a7d15a8f5f72a4159f4eb32d /src/libsyntax | |
| parent | 1558ae7cfd5e1190d3388dcc6f0f734589e4e478 (diff) | |
| download | rust-e221fcce66ed8fd9e7c89988596d28e768193f98.tar.gz rust-e221fcce66ed8fd9e7c89988596d28e768193f98.zip | |
Removed `raw_identifiers` feature gate.
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/diagnostic_list.rs | 5 | ||||
| -rw-r--r-- | src/libsyntax/feature_gate.rs | 15 |
2 files changed, 5 insertions, 15 deletions
diff --git a/src/libsyntax/diagnostic_list.rs b/src/libsyntax/diagnostic_list.rs index 15abad555f4..89af57a0858 100644 --- a/src/libsyntax/diagnostic_list.rs +++ b/src/libsyntax/diagnostic_list.rs @@ -382,8 +382,9 @@ Erroneous code example: ```ignore (limited to a warning during 2018 edition development) #![feature(rust_2018_preview)] -#![feature(raw_identifiers)] // error: the feature `raw_identifiers` is - // included in the Rust 2018 edition +#![feature(impl_header_lifetime_elision)] // error: the feature + // `impl_header_lifetime_elision` is + // included in the Rust 2018 edition ``` "##, diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index 74f573fceba..8a595113fcb 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -423,9 +423,6 @@ declare_features! ( // `use path as _;` and `extern crate c as _;` (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), Some(Edition::Edition2018)), - // Allows macro invocations in `extern {}` blocks (active, macros_in_extern, "1.27.0", Some(49476), None), @@ -651,6 +648,8 @@ declare_features! ( // Allows importing and reexporting macros with `use`, // enables macro modularization in general. (accepted, use_extern_macros, "1.30.0", Some(35896), None), + // Allows keywords to be escaped for use as identifiers + (accepted, raw_identifiers, "1.30.0", Some(48589), None), ); // If you change this, please modify src/doc/unstable-book as well. You must @@ -2072,16 +2071,6 @@ pub fn check_crate(krate: &ast::Crate, plugin_attributes, }; - if !features.raw_identifiers { - for &span in sess.raw_identifier_spans.borrow().iter() { - if !span.allows_unstable() { - gate_feature!(&ctx, raw_identifiers, span, - "raw identifiers are experimental and subject to change" - ); - } - } - } - let visitor = &mut PostExpansionVisitor { context: &ctx }; visitor.whole_crate_feature_gates(krate); visit::walk_crate(visitor, krate); |
