mirror of
https://github.com/HigherOrderCO/Bend.git
synced 2024-09-11 11:56:54 +03:00
Update golden_tests.rs and readd desugar_use call after linearize matches
This commit is contained in:
parent
3073285e36
commit
5810f93f9b
@ -129,6 +129,7 @@ pub fn desugar_book(
|
||||
ctx.check_unbound_vars()?;
|
||||
|
||||
ctx.book.make_var_names_unique();
|
||||
ctx.book.desugar_use();
|
||||
|
||||
ctx.book.make_var_names_unique();
|
||||
ctx.book.linearize_vars();
|
||||
|
@ -239,6 +239,7 @@ fn simplify_matches() {
|
||||
ctx.desugar_with_blocks()?;
|
||||
ctx.check_unbound_vars()?;
|
||||
ctx.book.make_var_names_unique();
|
||||
ctx.book.desugar_use();
|
||||
ctx.book.linearize_match_binds();
|
||||
ctx.book.linearize_match_with();
|
||||
ctx.check_unbound_vars()?;
|
||||
@ -288,6 +289,7 @@ fn encode_pattern_match() {
|
||||
ctx.desugar_with_blocks()?;
|
||||
ctx.check_unbound_vars()?;
|
||||
ctx.book.make_var_names_unique();
|
||||
ctx.book.desugar_use();
|
||||
ctx.book.linearize_match_binds();
|
||||
ctx.book.linearize_match_with();
|
||||
ctx.book.encode_matches(adt_encoding);
|
||||
|
Loading…
Reference in New Issue
Block a user