roc/compiler/constrain/src
ayazhafiz f8c7349193 Simplify pattern constraint generation
At the time we introduced presence constraints for tag unions, I added a
"destruct_position" variable so that we didn't change the typechecking
semantics for everything all at once, and because I wasn't totally sure
what I was doing was correct. But now we're more confident in this
approach, and every pattern is by definition a destructuring, so there
is no need for this flag.

Also should fix some potential bugs we didn't notice before with presence
constraints in closure variables, though I can't find a good test to
reproduce this, since closure variables are hidden from the user.
2022-02-24 01:08:18 -05:00
..
builtins.rs Validation of opaques during canonicalization 2022-02-21 18:25:19 -05:00
expr.rs Simplify pattern constraint generation 2022-02-24 01:08:18 -05:00
lib.rs Clean up some clippy warnings 2021-05-23 20:28:23 -04:00
module.rs Rename Located -> Loc 2021-12-22 19:18:22 -08:00
pattern.rs Simplify pattern constraint generation 2022-02-24 01:08:18 -05:00