rename PointerAddress → PointerExposeAddress
This commit is contained in:
parent
395a09c3da
commit
4dc5d457d8
12 changed files with 23 additions and 18 deletions
|
@ -2607,16 +2607,17 @@ static_assert_size!(Rvalue<'_>, 40);
|
|||
impl<'tcx> Rvalue<'tcx> {
|
||||
#[inline]
|
||||
pub fn is_pointer_int_cast(&self) -> bool {
|
||||
matches!(self, Rvalue::Cast(CastKind::PointerAddress, _, _))
|
||||
matches!(self, Rvalue::Cast(CastKind::PointerExposeAddress, _, _))
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, TyEncodable, TyDecodable, Hash, HashStable)]
|
||||
pub enum CastKind {
|
||||
Misc,
|
||||
/// A pointer to address cast. A cast between a pointer and an integer type,
|
||||
/// or between a function pointer and an integer type.
|
||||
PointerAddress,
|
||||
/// An exposing pointer to address cast. A cast between a pointer and an integer type, or
|
||||
/// between a function pointer and an integer type.
|
||||
/// See the docs on `expose_addr` for more details.
|
||||
PointerExposeAddress,
|
||||
Pointer(PointerCast),
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue