mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-04 11:17:04 +00:00

When encountering code like `f::<f::<f::<f::<f::<f::<f::<f::<...` with unmatched closing angle brackets, add a linear check that avoids the exponential behavior of the parse recovery mechanism. Fix #117080.