@@ -87,21 +87,17 @@ mod prelude {
87
87
AbiParam , Block , FuncRef , Inst , InstBuilder , MemFlags , Signature , SourceLoc , StackSlot ,
88
88
StackSlotData , StackSlotKind , TrapCode , Type , Value ,
89
89
} ;
90
- pub ( crate ) use cranelift_codegen:: isa:: { self , CallConv } ;
91
90
pub ( crate ) use cranelift_codegen:: Context ;
92
- pub ( crate ) use cranelift_frontend:: { FunctionBuilder , FunctionBuilderContext , Variable } ;
93
91
pub ( crate ) use cranelift_module:: { self , DataDescription , FuncId , Linkage , Module } ;
94
92
pub ( crate ) use rustc_data_structures:: fx:: { FxHashMap , FxIndexMap } ;
95
93
pub ( crate ) use rustc_hir:: def_id:: { DefId , LOCAL_CRATE } ;
96
94
pub ( crate ) use rustc_index:: Idx ;
97
- pub ( crate ) use rustc_middle:: bug;
98
95
pub ( crate ) use rustc_middle:: mir:: { self , * } ;
99
- pub ( crate ) use rustc_middle:: ty:: layout:: { self , LayoutOf , TyAndLayout } ;
96
+ pub ( crate ) use rustc_middle:: ty:: layout:: { LayoutOf , TyAndLayout } ;
100
97
pub ( crate ) use rustc_middle:: ty:: {
101
- self , FloatTy , Instance , InstanceDef , IntTy , ParamEnv , Ty , TyCtxt , TypeAndMut ,
102
- TypeFoldable , TypeVisitableExt , UintTy ,
98
+ self , FloatTy , Instance , InstanceDef , IntTy , ParamEnv , Ty , TyCtxt , TypeAndMut , UintTy ,
103
99
} ;
104
- pub ( crate ) use rustc_span:: { FileNameDisplayPreference , Span } ;
100
+ pub ( crate ) use rustc_span:: Span ;
105
101
pub ( crate ) use rustc_target:: abi:: { Abi , FieldIdx , Scalar , Size , VariantIdx , FIRST_VARIANT } ;
106
102
107
103
pub ( crate ) use crate :: abi:: * ;
@@ -261,7 +257,7 @@ fn target_triple(sess: &Session) -> target_lexicon::Triple {
261
257
}
262
258
}
263
259
264
- fn build_isa ( sess : & Session , backend_config : & BackendConfig ) -> Arc < dyn isa :: TargetIsa + ' static > {
260
+ fn build_isa ( sess : & Session , backend_config : & BackendConfig ) -> Arc < dyn TargetIsa + ' static > {
265
261
use target_lexicon:: BinaryFormat ;
266
262
267
263
let target_triple = crate :: target_triple ( sess) ;
0 commit comments