Skip to content

Commit 43695a4

Browse files
committed
Let's do some real inlining now!
1 parent cd69787 commit 43695a4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/rustc_mir_transform/src/inline.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,9 @@ impl<'tcx> Inliner<'tcx> {
174174
let callee_body = self.tcx.instance_mir(callsite.callee.def);
175175
self.check_mir_body(callsite, callee_body, callee_attrs)?;
176176

177-
if self.tcx.sess.mir_opt_level() == 1 {
178-
return Err("mir_opt_level == 1");
179-
}
177+
// if self.tcx.sess.mir_opt_level() == 1 {
178+
// return Err("mir_opt_level == 1");
179+
// }
180180

181181
if !self.tcx.consider_optimizing(|| {
182182
format!("Inline {:?} into {:?}", callsite.callee, caller_body.source)

0 commit comments

Comments
 (0)