Skip to content

Commit 921c05b

Browse files
committed
Auto merge of rust-lang#118626 - saethlin:ignore-assumes-cost, r=<try>
Ignore intrinsics::assume in MIR inlining cost estimation r? `@ghost`
2 parents da1da3f + 7e95ff7 commit 921c05b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_mir_transform/src/cost_checker.rs

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ impl<'tcx> Visitor<'tcx> for CostChecker<'_, 'tcx> {
4747
StatementKind::StorageLive(_)
4848
| StatementKind::StorageDead(_)
4949
| StatementKind::Deinit(_)
50+
| StatementKind::Intrinsic(box NonDivergingIntrinsic::Assume(_))
5051
| StatementKind::Nop => {}
5152
_ => self.cost += INSTR_COST,
5253
}

0 commit comments

Comments
 (0)