@@ -394,18 +394,12 @@ declare_features! (
394
394
// Allows trait methods with arbitrary self types
395
395
( active, arbitrary_self_types, "1.23.0" , Some ( 44874 ) , None ) ,
396
396
397
- // `crate` in paths
398
- ( active, crate_in_paths, "1.23.0" , Some ( 45477 ) , Some ( Edition :: Edition2018 ) ) ,
399
-
400
397
// In-band lifetime bindings (e.g. `fn foo(x: &'a u8) -> &'a u8`)
401
398
( active, in_band_lifetimes, "1.23.0" , Some ( 44524 ) , None ) ,
402
399
403
400
// Generic associated types (RFC 1598)
404
401
( active, generic_associated_types, "1.23.0" , Some ( 44265 ) , None ) ,
405
402
406
- // Resolve absolute paths as paths from other crates
407
- ( active, extern_absolute_paths, "1.24.0" , Some ( 44660 ) , Some ( Edition :: Edition2018 ) ) ,
408
-
409
403
// `extern` in paths
410
404
( active, extern_in_paths, "1.23.0" , Some ( 44660 ) , None ) ,
411
405
@@ -455,9 +449,6 @@ declare_features! (
455
449
// #[doc(alias = "...")]
456
450
( active, doc_alias, "1.27.0" , Some ( 50146 ) , None ) ,
457
451
458
- // Access to crate names passed via `--extern` through prelude
459
- ( active, extern_prelude, "1.27.0" , Some ( 44660 ) , Some ( Edition :: Edition2018 ) ) ,
460
-
461
452
// Scoped lints
462
453
( active, tool_lints, "1.28.0" , Some ( 44690 ) , None ) ,
463
454
@@ -683,7 +674,12 @@ declare_features! (
683
674
( accepted, panic_handler, "1.30.0" , Some ( 44489 ) , None ) ,
684
675
// Used to preserve symbols (see llvm.used)
685
676
( accepted, used, "1.30.0" , Some ( 40289 ) , None ) ,
686
-
677
+ // `crate` in paths
678
+ ( accepted, crate_in_paths, "1.30.0" , Some ( 45477 ) , None ) ,
679
+ // Resolve absolute paths as paths from other crates
680
+ ( accepted, extern_absolute_paths, "1.30.0" , Some ( 44660 ) , None ) ,
681
+ // Access to crate names passed via `--extern` through prelude
682
+ ( accepted, extern_prelude, "1.30.0" , Some ( 44660 ) , None ) ,
687
683
) ;
688
684
689
685
// 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> {
1892
1888
// cannot be kept in identifiers, so it's kept in paths instead and we take it from
1893
1889
// there while keeping location info from the ident span.
1894
1890
let span = segment. ident . span . with_ctxt ( path. span . ctxt ( ) ) ;
1895
- if segment. ident . name == keywords:: Crate . name ( ) {
1896
- gate_feature_post ! ( & self , crate_in_paths, span,
1897
- "`crate` in paths is experimental" ) ;
1898
- } else if segment. ident . name == keywords:: Extern . name ( ) {
1891
+ if segment. ident . name == keywords:: Extern . name ( ) {
1899
1892
gate_feature_post ! ( & self , extern_in_paths, span,
1900
1893
"`extern` in paths is experimental" ) ;
1901
1894
}
0 commit comments