about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-slice-array.js
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-10-27 19:46:07 +0200
committerGitHub <noreply@github.com>2023-10-27 19:46:07 +0200
commitb2295375f8addf205d528de3dd4d72bf3e9a29c1 (patch)
tree99757f068dcb9a1be1822517359e2541a27ef6ea /tests/rustdoc-js-std/parser-slice-array.js
parentdf8852a93453cd1ce7449a08db2ad7e265d4ef3f (diff)
parente81a5c65d9b254e625b96dfc756f1695ee1824ed (diff)
downloadrust-b2295375f8addf205d528de3dd4d72bf3e9a29c1.tar.gz
rust-b2295375f8addf205d528de3dd4d72bf3e9a29c1.zip
Rollup merge of #117212 - clubby789:fix-ternary-recover, r=compiler-errors
Properly restore snapshot when failing to recover parsing ternary

If the recovery parsed an expression, then failed to eat a `:`, it would return `false` without restoring the snapshot. Fix this by always restoring the snapshot when returning `false`.

Draft for now because I'd like to try and improve this recovery further.

Fixes #117208
Diffstat (limited to 'tests/rustdoc-js-std/parser-slice-array.js')
0 files changed, 0 insertions, 0 deletions