@@ -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
@@ -677,7 +668,12 @@ declare_features! (
677
668
( accepted, panic_handler, "1.30.0" , Some ( 44489 ) , None ) ,
678
669
// Used to preserve symbols (see llvm.used)
679
670
( accepted, used, "1.30.0" , Some ( 40289 ) , None ) ,
680
-
671
+ // `crate` in paths
672
+ ( accepted, crate_in_paths, "1.30.0" , Some ( 45477 ) , None ) ,
673
+ // Resolve absolute paths as paths from other crates
674
+ ( accepted, extern_absolute_paths, "1.30.0" , Some ( 44660 ) , None ) ,
675
+ // Access to crate names passed via `--extern` through prelude
676
+ ( accepted, extern_prelude, "1.30.0" , Some ( 44660 ) , None ) ,
681
677
) ;
682
678
683
679
// If you change this, please modify src/doc/unstable-book as well. You must
@@ -1883,10 +1879,7 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> {
1883
1879
// cannot be kept in identifiers, so it's kept in paths instead and we take it from
1884
1880
// there while keeping location info from the ident span.
1885
1881
let span = segment. ident . span . with_ctxt ( path. span . ctxt ( ) ) ;
1886
- if segment. ident . name == keywords:: Crate . name ( ) {
1887
- gate_feature_post ! ( & self , crate_in_paths, span,
1888
- "`crate` in paths is experimental" ) ;
1889
- } else if segment. ident . name == keywords:: Extern . name ( ) {
1882
+ if segment. ident . name == keywords:: Extern . name ( ) {
1890
1883
gate_feature_post ! ( & self , extern_in_paths, span,
1891
1884
"`extern` in paths is experimental" ) ;
1892
1885
}
0 commit comments