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 1bd7383 commit 158b70aCopy full SHA for 158b70a
clippy_utils/src/qualify_min_const_fn.rs
@@ -174,7 +174,7 @@ fn check_rvalue<'tcx>(
174
))
175
}
176
},
177
- Rvalue::NullaryOp(NullOp::SizeOf | NullOp::AlignOf | NullOp::OffsetOf(_) | NullOp::DebugAssertions, _)
+ Rvalue::NullaryOp(NullOp::SizeOf | NullOp::AlignOf | NullOp::OffsetOf(_) | NullOp::UbCheck(_), _)
178
| Rvalue::ShallowInitBox(_, _) => Ok(()),
179
Rvalue::UnaryOp(_, operand) => {
180
let ty = operand.ty(body, tcx);
0 commit comments