mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 19:23:50 +00:00
rename PointerAddress → PointerExposeAddress
This commit is contained in:
parent
4e45960abc
commit
86092a77b3
@ -125,7 +125,7 @@ fn check_rvalue<'tcx>(
|
||||
Rvalue::Len(place) | Rvalue::Discriminant(place) | Rvalue::Ref(_, _, place) | Rvalue::AddressOf(_, place) => {
|
||||
check_place(tcx, *place, span, body)
|
||||
},
|
||||
Rvalue::Cast(CastKind::PointerAddress, _, _) => {
|
||||
Rvalue::Cast(CastKind::PointerExposeAddress, _, _) => {
|
||||
Err((span, "casting pointers to ints is unstable in const fn".into()))
|
||||
},
|
||||
Rvalue::Cast(CastKind::Misc, operand, _) => {
|
||||
|
Loading…
Reference in New Issue
Block a user