about summary refs log tree commit diff
path: root/tests/codegen/autodiff/scalar.rs
diff options
context:
space:
mode:
authorTrevor Gross <t.gross35@gmail.com>2025-05-28 10:28:11 -0400
committerGitHub <noreply@github.com>2025-05-28 10:28:11 -0400
commitd6b1108cdae286fb680f310bc5929924bdf25965 (patch)
tree356b35d66c40a5b81363c3670db5d60b02e41c06 /tests/codegen/autodiff/scalar.rs
parent97f6e6e8ba92d760bdb6591794ba905711a54a65 (diff)
parentadcd0bf5c36ee49acf390f0d75125da4efda35ac (diff)
downloadrust-d6b1108cdae286fb680f310bc5929924bdf25965.tar.gz
rust-d6b1108cdae286fb680f310bc5929924bdf25965.zip
Rollup merge of #141670 - chenyukang:yukang-fix-ice-from-contracts, r=nnethercote
Fix ICE in tokenstream with contracts from parser recovery

Fixes rust-lang/rust#140683

After two times of parsing error, the `recover_stmt_` constructs an error ast, then when we expand macors, the invalid tokenstream triggered ICE because of mismatched delims.

Expected `{` and get other tokens is an obvious error message, too much effort on recovery may introduce noise.

r? ```@nnethercote```
Diffstat (limited to 'tests/codegen/autodiff/scalar.rs')
0 files changed, 0 insertions, 0 deletions