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>(
7979 let _inst_guard =
8080 crate :: PrintOnPanic ( || format ! ( "{:?} {}" , inst, tcx. symbol_name( inst) . name) ) ;
8181 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-
10382 tcx. sess
10483 . time ( "codegen fn" , || crate :: base:: trans_fn ( cx, inst, linkage) ) ;
10584 }
Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ extern crate rustc_fs_util;
2323extern crate rustc_hir;
2424extern crate rustc_incremental;
2525extern crate rustc_index;
26- extern crate rustc_mir;
2726extern crate rustc_session;
2827extern crate rustc_span;
2928extern crate rustc_symbol_mangling;
You can’t perform that action at this time.
0 commit comments