mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
Suppress TrySuffix movement around PncApply unless --migrate is passed
This is currently causing a bunch of fuzzing noise in main. Also added a comment to clarify this behavior is intended to be short-lived.
This commit is contained in:
parent
689c58f35e
commit
0107d6b9c4
1 changed files with 3 additions and 1 deletions
|
@ -98,7 +98,9 @@ fn format_expr_only(
|
|||
region,
|
||||
},
|
||||
loc_args,
|
||||
) => {
|
||||
) if buf.flags().parens_and_commas => {
|
||||
// TODO: the conversion we do here is _wrong_ and should be removed in the near future
|
||||
// For now this is helpful to fix up code that was incorrectly partially migrated
|
||||
let arena = buf.text.bump();
|
||||
let apply = arena.alloc(Expr::PncApply(
|
||||
arena.alloc(Loc {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue