@@ -24,8 +24,7 @@ use crate::ich::StableHashingContext;
24
24
use crate :: middle:: cstore:: CrateStoreDyn ;
25
25
use crate :: middle:: resolve_lifetime:: ObjectLifetimeDefault ;
26
26
use crate :: mir:: interpret:: ErrorHandled ;
27
- use crate :: mir:: Body ;
28
- use crate :: mir:: GeneratorLayout ;
27
+ use crate :: mir:: { Body , GeneratorLayout } ;
29
28
use crate :: traits:: { self , Reveal } ;
30
29
use crate :: ty;
31
30
use crate :: ty:: subst:: { GenericArg , InternalSubsts , Subst , SubstsRef } ;
@@ -34,9 +33,7 @@ use rustc_ast as ast;
34
33
use rustc_attr as attr;
35
34
use rustc_data_structures:: captures:: Captures ;
36
35
use rustc_data_structures:: fingerprint:: Fingerprint ;
37
- use rustc_data_structures:: fx:: FxHashMap ;
38
- use rustc_data_structures:: fx:: FxHashSet ;
39
- use rustc_data_structures:: fx:: FxIndexMap ;
36
+ use rustc_data_structures:: fx:: { FxHashMap , FxHashSet , FxIndexMap } ;
40
37
use rustc_data_structures:: sorted_map:: SortedIndexMultiMap ;
41
38
use rustc_data_structures:: stable_hasher:: { HashStable , StableHasher } ;
42
39
use rustc_data_structures:: sync:: { self , par_iter, ParallelIterator } ;
@@ -58,56 +55,42 @@ use rustc_target::abi::{Align, VariantIdx};
58
55
59
56
use std:: cell:: RefCell ;
60
57
use std:: cmp:: Ordering ;
61
- use std:: fmt;
62
58
use std:: hash:: { Hash , Hasher } ;
63
59
use std:: ops:: { ControlFlow , Range } ;
64
- use std:: ptr;
65
- use std:: str;
60
+ use std:: { fmt, ptr, str} ;
66
61
67
- pub use self :: sty:: BoundRegionKind :: * ;
68
- pub use self :: sty:: RegionKind ;
69
- pub use self :: sty:: RegionKind :: * ;
70
- pub use self :: sty:: TyKind :: * ;
71
- pub use self :: sty:: { Binder , BoundTy , BoundTyKind , BoundVar } ;
72
- pub use self :: sty:: { BoundRegion , BoundRegionKind , EarlyBoundRegion , FreeRegion , Region } ;
73
- pub use self :: sty:: { CanonicalPolyFnSig , FnSig , GenSig , PolyFnSig , PolyGenSig } ;
74
- pub use self :: sty:: { ClosureSubsts , GeneratorSubsts , TypeAndMut , UpvarSubsts } ;
75
- pub use self :: sty:: { ClosureSubstsParts , GeneratorSubstsParts } ;
76
- pub use self :: sty:: { ConstVid , RegionVid } ;
77
- pub use self :: sty:: { ExistentialPredicate , ParamConst , ParamTy , ProjectionTy } ;
78
- pub use self :: sty:: { ExistentialProjection , PolyExistentialProjection } ;
79
- pub use self :: sty:: { ExistentialTraitRef , PolyExistentialTraitRef } ;
80
- pub use self :: sty:: { PolyTraitRef , TraitRef , TyKind } ;
81
62
pub use crate :: ty:: diagnostics:: * ;
82
63
pub use rustc_type_ir:: InferTy :: * ;
83
64
pub use rustc_type_ir:: * ;
84
65
85
66
pub use self :: binding:: BindingMode ;
86
67
pub use self :: binding:: BindingMode :: * ;
87
-
88
- pub use self :: context:: { tls, FreeRegionInfo , TyCtxt } ;
89
- pub use self :: context:: {
90
- CanonicalUserType , CanonicalUserTypeAnnotation , CanonicalUserTypeAnnotations ,
91
- DelaySpanBugEmitted , ResolvedOpaqueTy , UserType , UserTypeAnnotationIndex ,
92
- } ;
68
+ pub use self :: consts:: { Const , ConstInt , ConstKind , InferConst , ScalarInt } ;
93
69
pub use self :: context:: {
94
- CtxtInterners , GeneratorInteriorTypeCause , GlobalCtxt , Lift , TypeckResults ,
70
+ tls, CanonicalUserType , CanonicalUserTypeAnnotation , CanonicalUserTypeAnnotations ,
71
+ CtxtInterners , DelaySpanBugEmitted , FreeRegionInfo , GeneratorInteriorTypeCause , GlobalCtxt ,
72
+ Lift , ResolvedOpaqueTy , TyCtxt , TypeckResults , UserType , UserTypeAnnotationIndex ,
95
73
} ;
96
-
97
74
pub use self :: instance:: { Instance , InstanceDef } ;
98
-
99
75
pub use self :: list:: List ;
100
-
76
+ pub use self :: sty:: BoundRegionKind :: * ;
77
+ pub use self :: sty:: RegionKind :: * ;
78
+ pub use self :: sty:: TyKind :: * ;
79
+ pub use self :: sty:: {
80
+ Binder , BoundRegion , BoundRegionKind , BoundTy , BoundTyKind , BoundVar , CanonicalPolyFnSig ,
81
+ ClosureSubsts , ClosureSubstsParts , ConstVid , EarlyBoundRegion , ExistentialPredicate ,
82
+ ExistentialProjection , ExistentialTraitRef , FnSig , FreeRegion , GenSig , GeneratorSubsts ,
83
+ GeneratorSubstsParts , ParamConst , ParamTy , PolyExistentialProjection , PolyExistentialTraitRef ,
84
+ PolyFnSig , PolyGenSig , PolyTraitRef , ProjectionTy , Region , RegionKind , RegionVid , TraitRef ,
85
+ TyKind , TypeAndMut , UpvarSubsts ,
86
+ } ;
101
87
pub use self :: trait_def:: TraitDef ;
102
88
103
- pub use self :: consts:: { Const , ConstInt , ConstKind , InferConst , ScalarInt } ;
104
-
105
89
pub mod _match;
106
90
pub mod adjustment;
107
91
pub mod binding;
108
92
pub mod cast;
109
93
pub mod codec;
110
- mod erase_regions;
111
94
pub mod error;
112
95
pub mod fast_reject;
113
96
pub mod flags;
@@ -127,6 +110,7 @@ pub mod walk;
127
110
mod consts;
128
111
mod context;
129
112
mod diagnostics;
113
+ mod erase_regions;
130
114
mod instance;
131
115
mod list;
132
116
mod structural_impls;
0 commit comments