@@ -41,33 +41,34 @@ use crate::ty::{ExistentialPredicate, InferTy, ParamTy, PolyFnSig, Predicate, Pr
41
41
use crate :: ty:: { InferConst , ParamConst } ;
42
42
use crate :: ty:: { List , TyKind , TyS } ;
43
43
use crate :: util:: common:: ErrorReported ;
44
- use rustc_data_structures:: sync;
45
- use rustc_hir as hir;
46
- use rustc_hir:: def:: { DefKind , Res } ;
47
- use rustc_hir:: def_id:: { CrateNum , DefId , DefIdMap , DefIdSet , DefIndex , LOCAL_CRATE } ;
48
- use rustc_hir:: { HirId , Node , TraitCandidate } ;
49
- use rustc_hir:: { ItemKind , ItemLocalId , ItemLocalMap , ItemLocalSet } ;
50
- use rustc_session:: config:: CrateType ;
51
- use rustc_session:: config:: { BorrowckMode , OutputFilenames } ;
52
- use rustc_session:: Session ;
53
-
54
44
use rustc_attr as attr;
55
45
use rustc_data_structures:: fx:: { FxHashMap , FxHashSet } ;
56
46
use rustc_data_structures:: profiling:: SelfProfilerRef ;
57
47
use rustc_data_structures:: sharded:: { IntoPointer , ShardedHashMap } ;
58
48
use rustc_data_structures:: stable_hasher:: {
59
49
hash_stable_hashmap, HashStable , StableHasher , StableVec ,
60
50
} ;
61
- use rustc_data_structures:: sync:: { Lock , Lrc , WorkerLocal } ;
51
+ use rustc_data_structures:: sync:: { self , Lock , Lrc , WorkerLocal } ;
62
52
use rustc_errors:: DiagnosticBuilder ;
53
+ use rustc_hir as hir;
54
+ use rustc_hir:: def:: { DefKind , Res } ;
55
+ use rustc_hir:: def_id:: { CrateNum , DefId , DefIdMap , DefIdSet , DefIndex , LOCAL_CRATE } ;
56
+ use rustc_hir:: { HirId , Node , TraitCandidate } ;
57
+ use rustc_hir:: { ItemKind , ItemLocalId , ItemLocalMap , ItemLocalSet } ;
63
58
use rustc_index:: vec:: { Idx , IndexVec } ;
64
59
use rustc_macros:: HashStable ;
60
+ use rustc_session:: config:: CrateType ;
61
+ use rustc_session:: config:: { BorrowckMode , OutputFilenames } ;
65
62
use rustc_session:: lint:: { Level , Lint } ;
66
- use rustc_session:: node_id :: NodeMap ;
63
+ use rustc_session:: Session ;
67
64
use rustc_span:: source_map:: MultiSpan ;
68
65
use rustc_span:: symbol:: { kw, sym, Symbol } ;
69
66
use rustc_span:: Span ;
70
67
use rustc_target:: spec:: abi;
68
+ use syntax:: ast;
69
+ use syntax:: expand:: allocator:: AllocatorKind ;
70
+ use syntax:: node_id:: NodeMap ;
71
+
71
72
use smallvec:: SmallVec ;
72
73
use std:: any:: Any ;
73
74
use std:: borrow:: Borrow ;
@@ -79,8 +80,6 @@ use std::iter;
79
80
use std:: mem;
80
81
use std:: ops:: { Bound , Deref } ;
81
82
use std:: sync:: Arc ;
82
- use syntax:: ast;
83
- use syntax:: expand:: allocator:: AllocatorKind ;
84
83
85
84
type InternedSet < ' tcx , T > = ShardedHashMap < Interned < ' tcx , T > , ( ) > ;
86
85
0 commit comments