about summary refs log tree commit diff
path: root/tests/ui/traits/issue-91949-hangs-on-recursion.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-07-12 17:28:21 +0000
committerbors <bors@rust-lang.org>2024-07-12 17:28:21 +0000
commit62c068feeafd1f4abbf87243d69cf8862e4dd277 (patch)
tree5a06f4955397c0774429f3d934bda271f2991c53 /tests/ui/traits/issue-91949-hangs-on-recursion.rs
parent5d76a13bbedebd773b4960432bff14f40acf3840 (diff)
parent100f3fd133d928e9c86cff202fa32e5e4d0ce6c7 (diff)
downloadrust-62c068feeafd1f4abbf87243d69cf8862e4dd277.tar.gz
rust-62c068feeafd1f4abbf87243d69cf8862e4dd277.zip
Auto merge of #127636 - nnethercote:fix-Parser-look_ahead, r=oli-obk
Fix `Parser::look_ahead`

`Parser::look_ahead` has a slow but simple general case, and a fast special case that is hit most of the time. But the special case is buggy and behaves differently to the general case. There are also no unit tests. This PR fixes all of this, resulting in a `Parser::look_ahead` that is equally fast, slightly simpler, more correct, and better tested.

r? `@davidtwco`
Diffstat (limited to 'tests/ui/traits/issue-91949-hangs-on-recursion.rs')
0 files changed, 0 insertions, 0 deletions