Skip to content

Commit c44a20f

Browse files
committed
rustc_mir: always run the inlining pass.
1 parent 8e105c0 commit c44a20f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/librustc_mir/transform/inline.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,7 @@ impl MirPass for Inline {
5252
tcx: TyCtxt<'a, 'tcx, 'tcx>,
5353
source: MirSource,
5454
mir: &mut Mir<'tcx>) {
55-
if tcx.sess.opts.debugging_opts.mir_opt_level >= 2 {
56-
Inliner { tcx, source }.run_pass(mir);
57-
}
55+
Inliner { tcx, source }.run_pass(mir);
5856
}
5957
}
6058

0 commit comments

Comments
 (0)