Skip to content

Commit f96e38b

Browse files
committed
Fix clippy
1 parent 765c6b8 commit f96e38b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_utils/src/qualify_min_const_fn.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ fn check_rvalue<'tcx>(
169169
Err((span, "unsizing casts are not allowed in const fn".into()))
170170
}
171171
},
172-
Rvalue::Cast(CastKind::PointerExposeAddress | CastKind::PointerAddress, _, _) => {
172+
Rvalue::Cast(CastKind::PointerExposeAddress, _, _) => {
173173
Err((span, "casting pointers to ints is unstable in const fn".into()))
174174
},
175175
Rvalue::Cast(CastKind::DynStar, _, _) => {

0 commit comments

Comments
 (0)