@@ -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
@@ -2120,7 +2119,7 @@ impl<'a, 'crateloader: 'a> Resolver<'a, 'crateloader> {
2120
2119
2121
2120
if !module. no_implicit_prelude {
2122
2121
if ns == TypeNS {
2123
- if let Some ( binding) = self . extern_prelude_get ( ident, !record_used, false ) {
2122
+ if let Some ( binding) = self . extern_prelude_get ( ident, !record_used) {
2124
2123
return Some ( LexicalScopeBinding :: Item ( binding) ) ;
2125
2124
}
2126
2125
}
@@ -5035,21 +5034,14 @@ impl<'a, 'crateloader: 'a> Resolver<'a, 'crateloader> {
5035
5034
self . name_already_seen . insert ( name, span) ;
5036
5035
}
5037
5036
5038
- fn extern_prelude_get ( & mut self , ident : Ident , speculative : bool , skip_feature_gate : bool )
5037
+ fn extern_prelude_get ( & mut self , ident : Ident , speculative : bool )
5039
5038
-> Option < & ' a NameBinding < ' a > > {
5040
5039
if ident. is_path_segment_keyword ( ) {
5041
5040
// Make sure `self`, `super` etc produce an error when passed to here.
5042
5041
return None ;
5043
5042
}
5044
5043
self . extern_prelude . get ( & ident. modern ( ) ) . cloned ( ) . and_then ( |entry| {
5045
5044
if let Some ( binding) = entry. extern_crate_item {
5046
- if !speculative && !skip_feature_gate && entry. introduced_by_item &&
5047
- !self . session . features_untracked ( ) . extern_crate_item_prelude {
5048
- emit_feature_err ( & self . session . parse_sess , "extern_crate_item_prelude" ,
5049
- ident. span , GateIssue :: Language ,
5050
- "use of extern prelude names introduced \
5051
- with `extern crate` items is unstable") ;
5052
- }
5053
5045
Some ( binding)
5054
5046
} else {
5055
5047
let crate_id = if !speculative {
0 commit comments