We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
overflow_checks
1 parent 27b3096 commit da5c22fCopy full SHA for da5c22f
compiler/rustc_public/src/mir/body.rs
@@ -1033,6 +1033,8 @@ pub enum RuntimeChecks {
1033
UbChecks,
1034
/// cfg!(contract_checks), but at codegen time
1035
ContractChecks,
1036
+ /// cfg!(overflow_checks), but at codegen time
1037
+ OverflowChecks,
1038
}
1039
1040
impl Operand {
compiler/rustc_public/src/unstable/convert/stable/mir.rs
@@ -330,6 +330,7 @@ impl<'tcx> Stable<'tcx> for mir::NullOp<'tcx> {
330
RuntimeChecks(op) => crate::mir::NullOp::RuntimeChecks(match op {
331
UbChecks => crate::mir::RuntimeChecks::UbChecks,
332
ContractChecks => crate::mir::RuntimeChecks::ContractChecks,
333
+ OverflowChecks => crate::mir::RuntimeChecks::OverflowChecks,
334
}),
335
336
0 commit comments