Remove TagName in favor of explicit TagName or Closure

Note that we still need a `TagOrClosure` enum for phases past mono, but
at least we get rid of the branches in the front end.
This commit is contained in:
Ayaz Hafiz 2022-06-01 16:54:04 -05:00
parent bbc022b2f5
commit bde107da49
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
29 changed files with 841 additions and 704 deletions

View file

@ -818,7 +818,7 @@ pub fn canonicalize_expr<'a>(
(
ZeroArgumentTag {
name: TagName::Tag((*tag).into()),
name: TagName((*tag).into()),
variant_var,
closure_name: symbol,
ext_var,