Files
rust/compiler/rustc_mir_transform/src
bors 000ccd651d Auto merge of #148766 - cjgillot:mir-const-runtime-checks, r=RalfJung,saethlin
Replace Rvalue::NullaryOp by a variant in mir::Operand.

Based on https://github.com/rust-lang/rust/pull/148151

This PR fully removes the MIR `Rvalue::NullaryOp`. After rust-lang/rust#148151, it was only useful for runtime checks like `ub_checks`, `contract_checks` and `overflow_checks`.

These are "runtime" checks, boolean constants that may only be `true` in codegen. It depends on a rustc flag passed to codegen, so we need to represent those flags cross-crate.

This PR replaces those runtime checks by special variants in MIR `ConstValue`. This allows code that expects constants to manipulate those as such, even if we may not always be able to evaluate them to actual scalars.
2025-12-22 06:58:28 +00:00
..
2025-10-24 02:41:50 +00:00
2025-09-08 15:07:12 -07:00
2025-07-21 08:08:41 +00:00
2025-10-28 10:26:50 +11:00
2025-10-10 12:57:24 +00:00
2025-12-14 17:25:53 +00:00
2025-10-19 02:22:18 +00:00
2025-12-14 17:30:07 +00:00
2025-10-10 12:57:24 +00:00
2025-10-06 10:57:27 -07:00
2025-10-10 12:57:24 +00:00
2025-12-14 17:25:53 +00:00