Skip to content

Commit 86092a7

Browse files
committed
rename PointerAddress → PointerExposeAddress
1 parent 4e45960 commit 86092a7

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
@@ -125,7 +125,7 @@ fn check_rvalue<'tcx>(
125125
Rvalue::Len(place) | Rvalue::Discriminant(place) | Rvalue::Ref(_, _, place) | Rvalue::AddressOf(_, place) => {
126126
check_place(tcx, *place, span, body)
127127
},
128-
Rvalue::Cast(CastKind::PointerAddress, _, _) => {
128+
Rvalue::Cast(CastKind::PointerExposeAddress, _, _) => {
129129
Err((span, "casting pointers to ints is unstable in const fn".into()))
130130
},
131131
Rvalue::Cast(CastKind::Misc, operand, _) => {

0 commit comments

Comments
 (0)