Move exhaustiveness checking to type checking

This commit is contained in:
Ayaz Hafiz 2022-04-22 15:23:56 -04:00
parent f7e04490c0
commit 85e3373d8b
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
15 changed files with 346 additions and 94 deletions

View file

@ -2091,6 +2091,7 @@ fn pattern_to_when<'a>(
value: body,
guard: None,
}],
branches_cond_var: pattern_var,
};
(symbol, Loc::at_zero(wrapped_body))
@ -3753,6 +3754,7 @@ pub fn with_hole<'a>(
region,
loc_cond,
branches,
branches_cond_var: _,
} => {
let cond_symbol = possible_reuse_symbol(env, procs, &loc_cond.value);
@ -5443,6 +5445,7 @@ pub fn from_can<'a>(
region,
loc_cond,
branches,
branches_cond_var: _,
} => {
let cond_symbol = possible_reuse_symbol(env, procs, &loc_cond.value);