@@ -946,7 +946,6 @@ pub struct Resolver<'a, 'tcx> {
946946 has_pub_restricted : bool ,
947947 used_imports : FxHashSet < NodeId > ,
948948 maybe_unused_trait_imports : FxIndexSet < LocalDefId > ,
949- maybe_unused_extern_crates : Vec < ( LocalDefId , Span ) > ,
950949
951950 /// Privacy errors are delayed until the end in order to deduplicate them.
952951 privacy_errors : Vec < PrivacyError < ' a > > ,
@@ -1284,7 +1283,6 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
12841283 has_pub_restricted : false ,
12851284 used_imports : FxHashSet :: default ( ) ,
12861285 maybe_unused_trait_imports : Default :: default ( ) ,
1287- maybe_unused_extern_crates : Vec :: new ( ) ,
12881286
12891287 privacy_errors : Vec :: new ( ) ,
12901288 ambiguity_errors : Vec :: new ( ) ,
@@ -1400,7 +1398,6 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
14001398 let extern_crate_map = self . extern_crate_map ;
14011399 let reexport_map = self . reexport_map ;
14021400 let maybe_unused_trait_imports = self . maybe_unused_trait_imports ;
1403- let maybe_unused_extern_crates = self . maybe_unused_extern_crates ;
14041401 let glob_map = self . glob_map ;
14051402 let main_def = self . main_def ;
14061403 let confused_type_with_std_module = self . confused_type_with_std_module ;
@@ -1414,12 +1411,6 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
14141411 reexport_map,
14151412 glob_map,
14161413 maybe_unused_trait_imports,
1417- maybe_unused_extern_crates,
1418- extern_prelude : self
1419- . extern_prelude
1420- . iter ( )
1421- . map ( |( ident, entry) | ( ident. name , entry. introduced_by_item ) )
1422- . collect ( ) ,
14231414 main_def,
14241415 trait_impls : self . trait_impls ,
14251416 proc_macros,
0 commit comments