diff options
author | Dawer <[email protected]> | 2021-04-22 16:17:27 +0100 |
---|---|---|
committer | Dawer <[email protected]> | 2021-05-31 20:03:45 +0100 |
commit | c3c2893f302d087ff3c1ddd3a1d4e88c03c4356b (patch) | |
tree | dc24743a4482f625b287c697f3ef17bfbfb9097f /crates/hir_ty/src/diagnostics.rs | |
parent | 7c1d8ca63510bb719fd91bbf38692e45b19c04d6 (diff) |
Update match checking.
fn is_useful , more skeletons
Specify a lifetime on pattern references
impl PatStack
fill impl Matrix
PatStack::pop_head_constructor
Index-based approach
struct PatCtxt
fields construction fn Fields::wildcards
split wildcard
fn Constructor::is_covered_by_any(..)
fn Matrix::specialize_constructor(..)
impl Usefulness
Initial work on witness construction
Reorganize files
Replace match checking diagnostic
Handle types of expanded patterns
unit match checking go brrr
Diffstat (limited to 'crates/hir_ty/src/diagnostics.rs')
-rw-r--r-- | crates/hir_ty/src/diagnostics.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/hir_ty/src/diagnostics.rs b/crates/hir_ty/src/diagnostics.rs index 283894704..87a3594c5 100644 --- a/crates/hir_ty/src/diagnostics.rs +++ b/crates/hir_ty/src/diagnostics.rs | |||
@@ -1,6 +1,8 @@ | |||
1 | //! Type inference-based diagnostics. | 1 | //! Type inference-based diagnostics. |
2 | mod expr; | 2 | mod expr; |
3 | #[allow(unused)] //todo | ||
3 | mod match_check; | 4 | mod match_check; |
5 | mod pattern; | ||
4 | mod unsafe_check; | 6 | mod unsafe_check; |
5 | mod decl_check; | 7 | mod decl_check; |
6 | 8 | ||