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.
1 parent 1a8e9b9 commit 1112801Copy full SHA for 1112801
clippy_utils/src/qualify_min_const_fn.rs
@@ -179,7 +179,7 @@ fn check_rvalue<'tcx>(
179
))
180
}
181
},
182
- Rvalue::NullaryOp(NullOp::SizeOf | NullOp::AlignOf | NullOp::OffsetOf(_) | NullOp::UbChecks, _)
+ Rvalue::NullaryOp(NullOp::SizeOf | NullOp::AlignOf | NullOp::OffsetOf(_) | NullOp::UbChecks | NullOp::ContractChecks, _)
183
| Rvalue::ShallowInitBox(_, _) => Ok(()),
184
Rvalue::UnaryOp(_, operand) => {
185
let ty = operand.ty(body, tcx);
0 commit comments