@@ -58,7 +58,6 @@ use syntax::ast::{self, Name, NodeId, Ident, FloatTy, IntTy, UintTy};
58
58
use syntax:: ext:: base:: SyntaxExtension ;
59
59
use syntax:: ext:: base:: Determinacy :: { self , Determined , Undetermined } ;
60
60
use syntax:: ext:: base:: MacroKind ;
61
- use syntax:: feature_gate:: { emit_feature_err, GateIssue } ;
62
61
use syntax:: symbol:: { Symbol , keywords} ;
63
62
use syntax:: util:: lev_distance:: find_best_match_for_name;
64
63
@@ -2115,7 +2114,7 @@ impl<'a, 'crateloader: 'a> Resolver<'a, 'crateloader> {
2115
2114
2116
2115
if !module. no_implicit_prelude {
2117
2116
if ns == TypeNS {
2118
- if let Some ( binding) = self . extern_prelude_get ( ident, !record_used, false ) {
2117
+ if let Some ( binding) = self . extern_prelude_get ( ident, !record_used) {
2119
2118
return Some ( LexicalScopeBinding :: Item ( binding) ) ;
2120
2119
}
2121
2120
}
@@ -5022,21 +5021,14 @@ impl<'a, 'crateloader: 'a> Resolver<'a, 'crateloader> {
5022
5021
self . name_already_seen . insert ( name, span) ;
5023
5022
}
5024
5023
5025
- fn extern_prelude_get ( & mut self , ident : Ident , speculative : bool , skip_feature_gate : bool )
5024
+ fn extern_prelude_get ( & mut self , ident : Ident , speculative : bool )
5026
5025
-> Option < & ' a NameBinding < ' a > > {
5027
5026
if ident. is_path_segment_keyword ( ) {
5028
5027
// Make sure `self`, `super` etc produce an error when passed to here.
5029
5028
return None ;
5030
5029
}
5031
5030
self . extern_prelude . get ( & ident. modern ( ) ) . cloned ( ) . and_then ( |entry| {
5032
5031
if let Some ( binding) = entry. extern_crate_item {
5033
- if !speculative && !skip_feature_gate && entry. introduced_by_item &&
5034
- !self . session . features_untracked ( ) . extern_crate_item_prelude {
5035
- emit_feature_err ( & self . session . parse_sess , "extern_crate_item_prelude" ,
5036
- ident. span , GateIssue :: Language ,
5037
- "use of extern prelude names introduced \
5038
- with `extern crate` items is unstable") ;
5039
- }
5040
5032
Some ( binding)
5041
5033
} else {
5042
5034
let crate_id = if !speculative {
0 commit comments