aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_ty/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir_ty/src/lib.rs')
-rw-r--r--crates/ra_hir_ty/src/lib.rs11
1 files changed, 3 insertions, 8 deletions
diff --git a/crates/ra_hir_ty/src/lib.rs b/crates/ra_hir_ty/src/lib.rs
index f22232324..c9513b752 100644
--- a/crates/ra_hir_ty/src/lib.rs
+++ b/crates/ra_hir_ty/src/lib.rs
@@ -37,6 +37,7 @@ pub(crate) mod utils;
37pub mod db; 37pub mod db;
38pub mod diagnostics; 38pub mod diagnostics;
39pub mod expr; 39pub mod expr;
40pub mod unsafe_validation;
40 41
41#[cfg(test)] 42#[cfg(test)]
42mod tests; 43mod tests;
@@ -619,17 +620,11 @@ pub enum GenericPredicate {
619 620
620impl GenericPredicate { 621impl GenericPredicate {
621 pub fn is_error(&self) -> bool { 622 pub fn is_error(&self) -> bool {
622 match self { 623 matches!(self, GenericPredicate::Error)
623 GenericPredicate::Error => true,
624 _ => false,
625 }
626 } 624 }
627 625
628 pub fn is_implemented(&self) -> bool { 626 pub fn is_implemented(&self) -> bool {
629 match self { 627 matches!(self, GenericPredicate::Implemented(_))
630 GenericPredicate::Implemented(_) => true,
631 _ => false,
632 }
633 } 628 }
634 629
635 pub fn trait_ref(&self, db: &dyn HirDatabase) -> Option<TraitRef> { 630 pub fn trait_ref(&self, db: &dyn HirDatabase) -> Option<TraitRef> {