Move desugaring to new roc_can_solo
crate
#7533
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We eventually want to split all canonicalization that can be done solo into the
roc_can_solo
crate and put whatever else remains into aroc_can_combine
crate. As a preliminary step, this change pulls just the initial desugaring work out from canonicalization intoroc_can_solo
. There is some cruft (e.g. unnecessary cloning of data, some dead code, etc.) added here, but it should make for an easier transition to the new state of canonicalization. Some notes on the changes:desugar_invalid_dbg_expr
code since it's used in the middle of canonicalization and not at the beginning like the other code.