We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd69787 commit 43695a4Copy full SHA for 43695a4
compiler/rustc_mir_transform/src/inline.rs
@@ -174,9 +174,9 @@ impl<'tcx> Inliner<'tcx> {
174
let callee_body = self.tcx.instance_mir(callsite.callee.def);
175
self.check_mir_body(callsite, callee_body, callee_attrs)?;
176
177
- if self.tcx.sess.mir_opt_level() == 1 {
178
- return Err("mir_opt_level == 1");
179
- }
+ // if self.tcx.sess.mir_opt_level() == 1 {
+ // return Err("mir_opt_level == 1");
+ // }
180
181
if !self.tcx.consider_optimizing(|| {
182
format!("Inline {:?} into {:?}", callsite.callee, caller_body.source)
0 commit comments