diff options
| author | bors <bors@rust-lang.org> | 2023-10-19 13:25:39 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-10-19 13:25:39 +0000 |
| commit | c104861b7b51d2c28e7023e7e53db16cc6677e29 (patch) | |
| tree | 681c0f8ffe0661f285bacf33bdd7d85eee087de4 /compiler/rustc_mir_transform/src/lib.rs | |
| parent | 3fbcfd2b6f7030cb70328aa759107efc1516912c (diff) | |
| parent | e8544f80ec61681ca3d2935996f614478934c2ec (diff) | |
| download | rust-c104861b7b51d2c28e7023e7e53db16cc6677e29.tar.gz rust-c104861b7b51d2c28e7023e7e53db16cc6677e29.zip | |
Auto merge of #116940 - matthiaskrgr:rollup-25ezp8a, r=matthiaskrgr
Rollup of 4 pull requests Successful merges: - #116650 (add some comments and some cleanup around Miri intptrcast) - #116896 (Only check in a single place if a pass is enabled.) - #116906 (Use v0.0.0 in compiler crates) - #116921 (fix(bootstrap) info message show correct path now) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_mir_transform/src/lib.rs')
| -rw-r--r-- | compiler/rustc_mir_transform/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_transform/src/lib.rs b/compiler/rustc_mir_transform/src/lib.rs index 01136974730..d579420ecb8 100644 --- a/compiler/rustc_mir_transform/src/lib.rs +++ b/compiler/rustc_mir_transform/src/lib.rs @@ -383,7 +383,7 @@ fn mir_drops_elaborated_and_const_checked(tcx: TyCtxt<'_>, def: LocalDefId) -> & let is_fn_like = tcx.def_kind(def).is_fn_like(); if is_fn_like { // Do not compute the mir call graph without said call graph actually being used. - if inline::Inline.is_enabled(&tcx.sess) { + if pm::should_run_pass(tcx, &inline::Inline) { tcx.ensure_with_value().mir_inliner_callees(ty::InstanceDef::Item(def.to_def_id())); } } |
