diff options
| author | bors <bors@rust-lang.org> | 2024-11-27 02:13:49 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-11-27 02:13:49 +0000 |
| commit | 48696f5bd64f58e1a3d98ccb2a801e079ddef30b (patch) | |
| tree | 28487c9ce9fa4a889da79119d17b4713202c624a /compiler/rustc_mir_transform/src/inline.rs | |
| parent | dd2837ec5de4301a692e05a7c4475e980af57a57 (diff) | |
| parent | 702996c31bf142787a30a0adcff8f098177ca1a3 (diff) | |
| download | rust-48696f5bd64f58e1a3d98ccb2a801e079ddef30b.tar.gz rust-48696f5bd64f58e1a3d98ccb2a801e079ddef30b.zip | |
Auto merge of #133516 - compiler-errors:rollup-mq334h8, r=compiler-errors
Rollup of 8 pull requests Successful merges: - #115293 (Remove -Zfuel.) - #132605 (CI: increase timeout from 4h to 6h) - #133304 (Revert diagnostics hack to fix ICE 132920) - #133402 (Constify `Drop` and `Destruct`) - #133458 (Fix `Result` and `Option` not getting a jump to def link generated) - #133471 (gce: fix typing_mode mismatch) - #133475 (`MaybeStorage` improvements) - #133513 (Only ignore windows-gnu in avr-jmp-offset) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_mir_transform/src/inline.rs')
| -rw-r--r-- | compiler/rustc_mir_transform/src/inline.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/compiler/rustc_mir_transform/src/inline.rs b/compiler/rustc_mir_transform/src/inline.rs index 00f6c3845d4..0878fa26a92 100644 --- a/compiler/rustc_mir_transform/src/inline.rs +++ b/compiler/rustc_mir_transform/src/inline.rs @@ -210,12 +210,6 @@ impl<'tcx> Inliner<'tcx> { let callee_body = try_instance_mir(self.tcx, callsite.callee.def)?; self.check_mir_body(callsite, callee_body, callee_attrs, cross_crate_inlinable)?; - if !self.tcx.consider_optimizing(|| { - format!("Inline {:?} into {:?}", callsite.callee, caller_body.source) - }) { - return Err("optimization fuel exhausted"); - } - let Ok(callee_body) = callsite.callee.try_instantiate_mir_and_normalize_erasing_regions( self.tcx, self.typing_env, |
