Skip to content

Commit a3db620

Browse files
committed
Try turning on the inliner by default
1 parent 7f65475 commit a3db620

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
@@ -39,7 +39,7 @@ struct CallSite<'tcx> {
3939

4040
impl<'tcx> MirPass<'tcx> for Inline {
4141
fn run_pass(&self, tcx: TyCtxt<'tcx>, source: MirSource<'tcx>, body: &mut BodyAndCache<'tcx>) {
42-
if tcx.sess.opts.debugging_opts.mir_opt_level >= 2 {
42+
if tcx.sess.opts.debugging_opts.mir_opt_level >= 1 {
4343
Inliner { tcx, source }.run_pass(body);
4444
}
4545
}

0 commit comments

Comments
 (0)