diff options
| author | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2018-09-20 20:39:46 +0300 |
|---|---|---|
| committer | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2018-09-22 09:26:40 +0300 |
| commit | fa2c24638493cc91c08a9ddab979448286e3dea1 (patch) | |
| tree | 53a2168a9b7b3ec4e3475cff122d4c7c28cf0251 /src/libsyntax | |
| parent | c97b60ff3fcf1830e7e19ceeaea4046dc126911d (diff) | |
| download | rust-fa2c24638493cc91c08a9ddab979448286e3dea1.tar.gz rust-fa2c24638493cc91c08a9ddab979448286e3dea1.zip | |
Stabilize crate_in_paths, extern_absolute_paths and extern_prelude on all editions.
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/feature_gate.rs | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index 8ddb7473162..d44d2146d82 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -394,18 +394,12 @@ declare_features! ( // Allows trait methods with arbitrary self types (active, arbitrary_self_types, "1.23.0", Some(44874), None), - // `crate` in paths - (active, crate_in_paths, "1.23.0", Some(45477), Some(Edition::Edition2018)), - // In-band lifetime bindings (e.g. `fn foo(x: &'a u8) -> &'a u8`) (active, in_band_lifetimes, "1.23.0", Some(44524), None), // Generic associated types (RFC 1598) (active, generic_associated_types, "1.23.0", Some(44265), None), - // Resolve absolute paths as paths from other crates - (active, extern_absolute_paths, "1.24.0", Some(44660), Some(Edition::Edition2018)), - // `extern` in paths (active, extern_in_paths, "1.23.0", Some(44660), None), @@ -455,9 +449,6 @@ declare_features! ( // #[doc(alias = "...")] (active, doc_alias, "1.27.0", Some(50146), None), - // Access to crate names passed via `--extern` through prelude - (active, extern_prelude, "1.27.0", Some(44660), Some(Edition::Edition2018)), - // Scoped lints (active, tool_lints, "1.28.0", Some(44690), None), @@ -683,7 +674,12 @@ declare_features! ( (accepted, panic_handler, "1.30.0", Some(44489), None), // Used to preserve symbols (see llvm.used) (accepted, used, "1.30.0", Some(40289), None), - + // `crate` in paths + (accepted, crate_in_paths, "1.30.0", Some(45477), None), + // Resolve absolute paths as paths from other crates + (accepted, extern_absolute_paths, "1.30.0", Some(44660), None), + // Access to crate names passed via `--extern` through prelude + (accepted, extern_prelude, "1.30.0", Some(44660), None), ); // If you change this, please modify src/doc/unstable-book as well. You must @@ -1892,10 +1888,7 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> { // cannot be kept in identifiers, so it's kept in paths instead and we take it from // there while keeping location info from the ident span. let span = segment.ident.span.with_ctxt(path.span.ctxt()); - if segment.ident.name == keywords::Crate.name() { - gate_feature_post!(&self, crate_in_paths, span, - "`crate` in paths is experimental"); - } else if segment.ident.name == keywords::Extern.name() { + if segment.ident.name == keywords::Extern.name() { gate_feature_post!(&self, extern_in_paths, span, "`extern` in paths is experimental"); } |
