X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_target%2Fsrc%2Fabi%2Fmod.rs;h=d1eafd6ac5fb82313977fc9ae4224447dbe2c139;hb=9d20fd109809f20c049d6895a5be27a1fbd39daa;hp=0850e6834590300d8f4a7d19d98644e08af83c3e;hpb=79b6bad406155cad4481150fc5dfa0da5394e3b6;p=rust.git diff --git a/compiler/rustc_target/src/abi/mod.rs b/compiler/rustc_target/src/abi/mod.rs index 0850e683459..d1eafd6ac5f 100644 --- a/compiler/rustc_target/src/abi/mod.rs +++ b/compiler/rustc_target/src/abi/mod.rs @@ -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