Skip to content

Commit 0db5786

Browse files
committed
Auto merge of #123429 - matthiaskrgr:rollup-4emw4e9, r=matthiaskrgr
Rollup of 8 pull requests Successful merges: - #121595 (Better reporting on generic argument mismatchs) - #122619 (Fix some unsoundness with PassMode::Cast ABI) - #122964 (Rename `expose_addr` to `expose_provenance`) - #123291 (Move some tests) - #123301 (pattern analysis: fix union handling) - #123395 (More postfix match fixes) - #123419 (rustc_index: Add a `ZERO` constant to index types) - #123421 (Fix target name in NetBSD platform-support doc) r? `@ghost` `@rustbot` modify labels: rollup
2 parents d1ad8d0 + 82fa8d5 commit 0db5786

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
@@ -149,7 +149,7 @@ fn check_rvalue<'tcx>(
149149
Err((span, "unsizing casts are not allowed in const fn".into()))
150150
}
151151
},
152-
Rvalue::Cast(CastKind::PointerExposeAddress, _, _) => {
152+
Rvalue::Cast(CastKind::PointerExposeProvenance, _, _) => {
153153
Err((span, "casting pointers to ints is unstable in const fn".into()))
154154
},
155155
Rvalue::Cast(CastKind::DynStar, _, _) => {

0 commit comments

Comments
 (0)