@@ -35,7 +35,7 @@ use rustc_data_structures::sync::{self, Lock, Lrc, WorkerLocal};
35
35
use rustc_errors:: ErrorReported ;
36
36
use rustc_hir as hir;
37
37
use rustc_hir:: def:: { DefKind , Res } ;
38
- use rustc_hir:: def_id:: { CrateNum , DefId , DefIdMap , DefIdSet , LocalDefId , LOCAL_CRATE } ;
38
+ use rustc_hir:: def_id:: { CrateNum , DefId , DefIdMap , LocalDefId , LOCAL_CRATE } ;
39
39
use rustc_hir:: definitions:: { DefPathHash , Definitions } ;
40
40
use rustc_hir:: lang_items:: { self , PanicLocationLangItem } ;
41
41
use rustc_hir:: { HirId , ItemKind , ItemLocalId , ItemLocalMap , ItemLocalSet , Node , TraitCandidate } ;
@@ -392,7 +392,7 @@ pub struct TypeckTables<'tcx> {
392
392
/// This is used for warning unused imports. During type
393
393
/// checking, this `Lrc` should not be cloned: it must have a ref-count
394
394
/// of 1 so that we can insert things into the set mutably.
395
- pub used_trait_imports : Lrc < DefIdSet > ,
395
+ pub used_trait_imports : Lrc < FxHashSet < LocalDefId > > ,
396
396
397
397
/// If any errors occurred while type-checking this body,
398
398
/// this field will be set to `Some(ErrorReported)`.
0 commit comments