@@ -58,7 +58,6 @@ use syntax::ast::{self, Name, NodeId, Ident, FloatTy, IntTy, UintTy};
5858use syntax:: ext:: base:: SyntaxExtension ;
5959use syntax:: ext:: base:: Determinacy :: { self , Determined , Undetermined } ;
6060use syntax:: ext:: base:: MacroKind ;
61- use syntax:: feature_gate:: { emit_feature_err, GateIssue } ;
6261use syntax:: symbol:: { Symbol , keywords} ;
6362use syntax:: util:: lev_distance:: find_best_match_for_name;
6463
@@ -2115,7 +2114,7 @@ impl<'a, 'crateloader: 'a> Resolver<'a, 'crateloader> {
21152114
21162115 if !module. no_implicit_prelude {
21172116 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) {
21192118 return Some ( LexicalScopeBinding :: Item ( binding) ) ;
21202119 }
21212120 }
@@ -5022,21 +5021,14 @@ impl<'a, 'crateloader: 'a> Resolver<'a, 'crateloader> {
50225021 self . name_already_seen . insert ( name, span) ;
50235022 }
50245023
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 )
50265025 -> Option < & ' a NameBinding < ' a > > {
50275026 if ident. is_path_segment_keyword ( ) {
50285027 // Make sure `self`, `super` etc produce an error when passed to here.
50295028 return None ;
50305029 }
50315030 self . extern_prelude . get ( & ident. modern ( ) ) . cloned ( ) . and_then ( |entry| {
50325031 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- }
50405032 Some ( binding)
50415033 } else {
50425034 let crate_id = if !speculative {
0 commit comments