]> git.lizzy.rs Git - rust.git/commit
Update match checking.
authorDawer <7803845+iDawer@users.noreply.github.com>
Thu, 22 Apr 2021 15:17:27 +0000 (20:17 +0500)
committerDawer <7803845+iDawer@users.noreply.github.com>
Mon, 31 May 2021 19:03:45 +0000 (00:03 +0500)
commitc3c2893f302d087ff3c1ddd3a1d4e88c03c4356b
treedc24743a4482f625b287c697f3ef17bfbfb9097f
parent7c1d8ca63510bb719fd91bbf38692e45b19c04d6
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
crates/hir_ty/Cargo.toml
crates/hir_ty/src/diagnostics.rs
crates/hir_ty/src/diagnostics/expr.rs
crates/hir_ty/src/diagnostics/pattern.rs [new file with mode: 0644]
crates/hir_ty/src/diagnostics/pattern/deconstruct_pat.rs [new file with mode: 0644]
crates/hir_ty/src/diagnostics/pattern/usefulness.rs [new file with mode: 0644]