rustc_abi: remove Primitive::{is_float,is_int}
there were fixmes for this already i am about to remove is_ptr (since callers need to properly distinguish between pointers in different address spaces), so might as well do this at the same time
This commit is contained in:
parent
a5fa99eed2
commit
96f8f99589
3 changed files with 3 additions and 15 deletions
|
@ -887,18 +887,6 @@ impl Primitive {
|
|||
}
|
||||
}
|
||||
|
||||
// FIXME(eddyb) remove, it's trivial thanks to `matches!`.
|
||||
#[inline]
|
||||
pub fn is_float(self) -> bool {
|
||||
matches!(self, F32 | F64)
|
||||
}
|
||||
|
||||
// FIXME(eddyb) remove, it's completely unused.
|
||||
#[inline]
|
||||
pub fn is_int(self) -> bool {
|
||||
matches!(self, Int(..))
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn is_ptr(self) -> bool {
|
||||
matches!(self, Pointer)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue