Don't use TyKind in lint
This commit is contained in:
parent
f167efad2f
commit
42a901acd9
3 changed files with 14 additions and 20 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue