@@ -48,8 +48,9 @@ pub fn codegen_crate<'a, 'tcx>(
48
48
fn run_jit < ' a , ' tcx : ' a > ( tcx : TyCtxt < ' a , ' tcx , ' tcx > , log : & mut Option < File > ) -> ! {
49
49
use cranelift_simplejit:: { SimpleJITBackend , SimpleJITBuilder } ;
50
50
51
- let mut jit_module: Module < SimpleJITBackend > =
52
- Module :: new ( SimpleJITBuilder :: new ( cranelift_module:: default_libcall_names ( ) ) ) ;
51
+ let mut jit_module: Module < SimpleJITBackend > = Module :: new ( SimpleJITBuilder :: new (
52
+ cranelift_module:: default_libcall_names ( ) ,
53
+ ) ) ;
53
54
assert_eq ! ( pointer_ty( tcx) , jit_module. target_config( ) . pointer_type( ) ) ;
54
55
55
56
let sig = Signature {
@@ -115,9 +116,9 @@ fn run_aot<'a, 'tcx: 'a>(
115
116
} ;
116
117
117
118
let emit_module = |name : & str ,
118
- kind : ModuleKind ,
119
- mut module : Module < FaerieBackend > ,
120
- debug : Option < DebugContext > | {
119
+ kind : ModuleKind ,
120
+ mut module : Module < FaerieBackend > ,
121
+ debug : Option < DebugContext > | {
121
122
module. finalize_definitions ( ) ;
122
123
let mut artifact = module. finish ( ) . artifact ;
123
124
@@ -251,9 +252,7 @@ fn trans_mono_item<'a, 'clif, 'tcx: 'a, B: Backend + 'static>(
251
252
match inst. def {
252
253
InstanceDef :: Item ( _)
253
254
| InstanceDef :: DropGlue ( _, _)
254
- | InstanceDef :: Virtual ( _, _)
255
- if inst. def_id ( ) . krate == LOCAL_CRATE =>
256
- {
255
+ | InstanceDef :: Virtual ( _, _) => {
257
256
let mut mir = :: std:: io:: Cursor :: new ( Vec :: new ( ) ) ;
258
257
crate :: rustc_mir:: util:: write_mir_pretty (
259
258
tcx,
0 commit comments