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 2c1ceea commit 6026cc9Copy full SHA for 6026cc9
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