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:
Joshua Warner 2025-01-29 21:37:35 -08:00
parent 689c58f35e
commit 0107d6b9c4
No known key found for this signature in database
GPG key ID: 89AD497003F93FDD

View file

@ -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 {