Skip to content

Commit c38d0c5

Browse files
authored
Rollup merge of #97626 - RalfJung:expose, r=tmiasko
rename PointerAddress → PointerExposeAddress `PointerAddress` sounds a bit too much like `ptr.addr()`, but this corresponds to `ptr.expose_addr()`. r? `@tmiasko`
2 parents 7e25796 + 1f7757d commit c38d0c5

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)