summaryrefslogtreecommitdiff
path: root/compiler/rustc_abi
diff options
context:
space:
mode:
authorErik Desjardins <erikdesjardins@users.noreply.github.com>2023-01-22 21:02:07 -0500
committerErik Desjardins <erikdesjardins@users.noreply.github.com>2023-01-22 21:02:07 -0500
commit96f8f995891ad1f7d514a615d9494cf7f56ea0a3 (patch)
treee570a4e1a6367fd9adc6719f6b869fe61eabde71 /compiler/rustc_abi
parenta5fa99eed20a46a88c0c85eed6552a94b6656634 (diff)
downloadrust-96f8f995891ad1f7d514a615d9494cf7f56ea0a3.tar.gz
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
Diffstat (limited to 'compiler/rustc_abi')
-rw-r--r--compiler/rustc_abi/src/lib.rs12
1 files changed, 0 insertions, 12 deletions
diff --git a/compiler/rustc_abi/src/lib.rs b/compiler/rustc_abi/src/lib.rs
index f4cb459f32f..b9ec7d2ee74 100644
--- a/compiler/rustc_abi/src/lib.rs
+++ b/compiler/rustc_abi/src/lib.rs
@@ -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)