]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_target/src/abi/mod.rs
Auto merge of #97684 - RalfJung:better-provenance-control, r=oli-obk
[rust.git] / compiler / rustc_target / src / abi / mod.rs
index 0850e6834590300d8f4a7d19d98644e08af83c3e..d1eafd6ac5fb82313977fc9ae4224447dbe2c139 100644 (file)
@@ -747,6 +747,11 @@ pub fn is_float(self) -> bool {
     pub fn is_int(self) -> bool {
         matches!(self, Int(..))
     }
+
+    #[inline]
+    pub fn is_ptr(self) -> bool {
+        matches!(self, Pointer)
+    }
 }
 
 /// Inclusive wrap-around range of valid values, that is, if