mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-09-21 23:21:57 +00:00
rename PointerAddress → PointerExposeAddress
This commit is contained in:
parent
4e45960abc
commit
86092a77b3
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue