Skip to content

Commit 0a2643c

Browse files
committed
Auto merge of #97632 - JohnTitor:rollup-d2ucrjw, r=JohnTitor
Rollup of 6 pull requests Successful merges: - #95594 (Additional `*mut [T]` methods) - #97130 (rustdoc: avoid including impl blocks with filled-in generics) - #97166 (Move conditions out of recover/report functions.) - #97605 (Mention filename in suggestion when it differs from primary span) - #97613 (rustdoc: Improve calculation of "Impls on Foreign Types") - #97626 (rename PointerAddress → PointerExposeAddress) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2 parents b82712c + c38d0c5 commit 0a2643c

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)