Skip to content

Commit 53e31dc

Browse files
committed
rename expose_addr to expose_provenance
1 parent e530b3d commit 53e31dc

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)