Skip to content

Commit 5919b26

Browse files
committed
move assert_unsafe_preconditions to its own file
These macros and functions are not intrinsics, after all.
1 parent e5ece90 commit 5919b26

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
@@ -174,7 +174,7 @@ fn check_rvalue<'tcx>(
174174
))
175175
}
176176
},
177-
Rvalue::NullaryOp(NullOp::SizeOf | NullOp::AlignOf | NullOp::OffsetOf(_) | NullOp::UbCheck(_), _)
177+
Rvalue::NullaryOp(NullOp::SizeOf | NullOp::AlignOf | NullOp::OffsetOf(_) | NullOp::UbChecks, _)
178178
| Rvalue::ShallowInitBox(_, _) => Ok(()),
179179
Rvalue::UnaryOp(_, operand) => {
180180
let ty = operand.ty(body, tcx);

0 commit comments

Comments
 (0)