1
Fork 0

Don't use TyKind in lint

This commit is contained in:
Michael Goulet 2024-08-24 16:15:43 -04:00
parent f167efad2f
commit 42a901acd9
3 changed files with 14 additions and 20 deletions

View file

@ -1000,7 +1000,7 @@ impl<'tcx> Ty<'tcx> {
#[inline]
pub fn is_primitive(self) -> bool {
self.kind().is_primitive()
matches!(self.kind(), Bool | Char | Int(_) | Uint(_) | Float(_))
}
#[inline]