diff options
Diffstat (limited to 'crates/ra_hir_ty/src/lib.rs')
-rw-r--r-- | crates/ra_hir_ty/src/lib.rs | 11 |
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; | |||
37 | pub mod db; | 37 | pub mod db; |
38 | pub mod diagnostics; | 38 | pub mod diagnostics; |
39 | pub mod expr; | 39 | pub mod expr; |
40 | pub mod unsafe_validation; | ||
40 | 41 | ||
41 | #[cfg(test)] | 42 | #[cfg(test)] |
42 | mod tests; | 43 | mod tests; |
@@ -619,17 +620,11 @@ pub enum GenericPredicate { | |||
619 | 620 | ||
620 | impl GenericPredicate { | 621 | impl 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> { |