mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 20:28:02 +00:00
Merge pull request #7560 from joshuawarner32/fix-pnc-apply-question-movement
Suppress TrySuffix movement around PncApply unless --migrate is passed
This commit is contained in:
commit
8c8b9418ee
2 changed files with 7 additions and 3 deletions
6
.github/workflows/fuzzer.yml
vendored
6
.github/workflows/fuzzer.yml
vendored
|
@ -19,5 +19,7 @@ jobs:
|
|||
cargo +nightly-2024-02-03 install --locked cargo-fuzz
|
||||
cd crates/compiler/test_syntax/fuzz && cargo +nightly-2024-02-03 fuzz run -j4 fuzz_expr --sanitizer=none -- -dict=dict.txt -max_total_time=60 || true
|
||||
cd ..
|
||||
for x in fuzz/artifacts/fuzz_expr/crash-*; do cargo run --bin minimize expr $x; done
|
||||
if ls fuzz/artifacts/fuzz_expr/ | grep crash-; then exit 1; fi
|
||||
if ls fuzz/artifacts/fuzz_expr/ | grep crash-; then
|
||||
for x in fuzz/artifacts/fuzz_expr/crash-*; do cargo run --bin minimize expr $x; done
|
||||
exit 1
|
||||
fi
|
||||
|
|
|
@ -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