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.
2 parents de63d25 + 6026cc9 commit cd5b0b6Copy full SHA for cd5b0b6
clippy_utils/src/qualify_min_const_fn.rs
@@ -194,10 +194,7 @@ fn check_rvalue<'tcx>(
194
))
195
}
196
},
197
- Rvalue::NullaryOp(
198
- NullOp::SizeOf | NullOp::AlignOf | NullOp::OffsetOf(_) | NullOp::UbChecks | NullOp::ContractChecks,
199
- _,
200
- )
+ Rvalue::NullaryOp(NullOp::OffsetOf(_) | NullOp::UbChecks | NullOp::ContractChecks, _)
201
| Rvalue::ShallowInitBox(_, _) => Ok(()),
202
Rvalue::UnaryOp(_, operand) => {
203
let ty = operand.ty(body, cx.tcx);
0 commit comments