Skip to content

Commit 9e0f3ec

Browse files
committed
Replace OffsetOf by an actual sum.
1 parent a8c084c commit 9e0f3ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_utils/src/qualify_min_const_fn.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ fn check_rvalue<'tcx>(
194194
))
195195
}
196196
},
197-
Rvalue::NullaryOp(NullOp::OffsetOf(_) | NullOp::RuntimeChecks(_), _) | Rvalue::ShallowInitBox(_, _) => Ok(()),
197+
Rvalue::NullaryOp(NullOp::RuntimeChecks(_)) | Rvalue::ShallowInitBox(_, _) => Ok(()),
198198
Rvalue::UnaryOp(_, operand) => {
199199
let ty = operand.ty(body, cx.tcx);
200200
if ty.is_integral() || ty.is_bool() {

0 commit comments

Comments
 (0)