We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57b5f8c commit c625d31Copy full SHA for c625d31
compiler/rustc_middle/src/ty/sty.rs
@@ -205,10 +205,7 @@ pub enum TyKind<'tcx> {
205
impl TyKind<'tcx> {
206
#[inline]
207
pub fn is_primitive(&self) -> bool {
208
- match self {
209
- Bool | Char | Int(_) | Uint(_) | Float(_) => true,
210
- _ => false,
211
- }
+ matches!(self, Bool | Char | Int(_) | Uint(_) | Float(_))
212
}
213
214
0 commit comments