@@ -946,7 +946,6 @@ pub struct Resolver<'a, 'tcx> {
946
946
has_pub_restricted : bool ,
947
947
used_imports : FxHashSet < NodeId > ,
948
948
maybe_unused_trait_imports : FxIndexSet < LocalDefId > ,
949
- maybe_unused_extern_crates : Vec < ( LocalDefId , Span ) > ,
950
949
951
950
/// Privacy errors are delayed until the end in order to deduplicate them.
952
951
privacy_errors : Vec < PrivacyError < ' a > > ,
@@ -1284,7 +1283,6 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
1284
1283
has_pub_restricted : false ,
1285
1284
used_imports : FxHashSet :: default ( ) ,
1286
1285
maybe_unused_trait_imports : Default :: default ( ) ,
1287
- maybe_unused_extern_crates : Vec :: new ( ) ,
1288
1286
1289
1287
privacy_errors : Vec :: new ( ) ,
1290
1288
ambiguity_errors : Vec :: new ( ) ,
@@ -1400,7 +1398,6 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
1400
1398
let extern_crate_map = self . extern_crate_map ;
1401
1399
let reexport_map = self . reexport_map ;
1402
1400
let maybe_unused_trait_imports = self . maybe_unused_trait_imports ;
1403
- let maybe_unused_extern_crates = self . maybe_unused_extern_crates ;
1404
1401
let glob_map = self . glob_map ;
1405
1402
let main_def = self . main_def ;
1406
1403
let confused_type_with_std_module = self . confused_type_with_std_module ;
@@ -1414,12 +1411,6 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
1414
1411
reexport_map,
1415
1412
glob_map,
1416
1413
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 ( ) ,
1423
1414
main_def,
1424
1415
trait_impls : self . trait_impls ,
1425
1416
proc_macros,
0 commit comments