aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_ty/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir_ty/src')
-rw-r--r--crates/ra_hir_ty/src/lib.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/crates/ra_hir_ty/src/lib.rs b/crates/ra_hir_ty/src/lib.rs
index ac0ef1bfe..3e5f38d0d 100644
--- a/crates/ra_hir_ty/src/lib.rs
+++ b/crates/ra_hir_ty/src/lib.rs
@@ -731,10 +731,7 @@ impl Ty {
731 } 731 }
732 732
733 pub fn is_never(&self) -> bool { 733 pub fn is_never(&self) -> bool {
734 match self { 734 matches!(self, Ty::Apply(ApplicationTy { ctor: TypeCtor::Never, .. }))
735 Ty::Apply(ApplicationTy { ctor: TypeCtor::Never, .. }) => true,
736 _ => false,
737 }
738 } 735 }
739 736
740 /// If this is a `dyn Trait` type, this returns the `Trait` part. 737 /// If this is a `dyn Trait` type, this returns the `Trait` part.