File tree Expand file tree Collapse file tree 2 files changed +0
-22
lines changed Expand file tree Collapse file tree 2 files changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -79,27 +79,6 @@ fn trans_mono_item<'tcx, M: Module>(
79
79
let _inst_guard =
80
80
crate :: PrintOnPanic ( || format ! ( "{:?} {}" , inst, tcx. symbol_name( inst) . name) ) ;
81
81
debug_assert ! ( !inst. substs. needs_infer( ) ) ;
82
- let _mir_guard = crate :: PrintOnPanic ( || {
83
- match inst. def {
84
- InstanceDef :: Item ( _)
85
- | InstanceDef :: DropGlue ( _, _)
86
- | InstanceDef :: Virtual ( _, _) => {
87
- let mut mir = :: std:: io:: Cursor :: new ( Vec :: new ( ) ) ;
88
- crate :: rustc_mir:: util:: write_mir_pretty (
89
- tcx,
90
- Some ( inst. def_id ( ) ) ,
91
- & mut mir,
92
- )
93
- . unwrap ( ) ;
94
- String :: from_utf8 ( mir. into_inner ( ) ) . unwrap ( )
95
- }
96
- _ => {
97
- // FIXME fix write_mir_pretty for these instances
98
- format ! ( "{:#?}" , tcx. instance_mir( inst. def) )
99
- }
100
- }
101
- } ) ;
102
-
103
82
tcx. sess
104
83
. time ( "codegen fn" , || crate :: base:: trans_fn ( cx, inst, linkage) ) ;
105
84
}
Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ extern crate rustc_fs_util;
23
23
extern crate rustc_hir;
24
24
extern crate rustc_incremental;
25
25
extern crate rustc_index;
26
- extern crate rustc_mir;
27
26
extern crate rustc_session;
28
27
extern crate rustc_span;
29
28
extern crate rustc_symbol_mangling;
You can’t perform that action at this time.
0 commit comments