Skip to content

Commit 3eb26d1

Browse files
Aatcheddyb
authored andcommitted
Only run inlining if mir opts are enabled
1 parent f55e92b commit 3eb26d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/transform/inline.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ impl<'tcx> MirMapPass<'tcx> for Inline {
4848
tcx: TyCtxt<'a, 'tcx, 'tcx>,
4949
hooks: &mut [Box<for<'s> MirPassHook<'s>>]) {
5050

51-
//if tcx.sess.opts.debugging_opts.mir_opt_level < 2 { return; }
51+
if tcx.sess.opts.debugging_opts.mir_opt_level < 2 { return; }
5252

5353
let _ignore = tcx.dep_graph.in_ignore();
5454

0 commit comments

Comments
 (0)