1
Fork 0
rust/compiler/rustc_parse/src/parser
Esteban Küber 2dec1bc685 Avoid unbounded O(n^2) when parsing nested type args
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.
2023-10-25 19:07:34 +00:00
..
attr.rs Avoid too many expected symbols and reduce Nones 2023-08-03 08:56:31 +00:00
attr_wrapper.rs Adjust to_attr_token_stream. 2023-09-06 17:12:07 +10:00
diagnostics.rs Move where doc comment meant as comment check 2023-10-20 02:54:45 +00:00
expr.rs s/generator/coroutine/ 2023-10-20 21:14:01 +00:00
generics.rs fix couple of clippy findings: 2023-07-23 10:50:14 +02:00
item.rs Format all the let chains in compiler 2023-10-13 08:59:36 +00:00
mod.rs Avoid unbounded O(n^2) when parsing nested type args 2023-10-25 19:07:34 +00:00
nonterminal.rs Format all the let chains in compiler 2023-10-13 08:59:36 +00:00
pat.rs Only suggest turbofish in patterns if we may recover 2023-09-12 16:38:59 +02:00
path.rs Avoid unbounded O(n^2) when parsing nested type args 2023-10-25 19:07:34 +00:00
stmt.rs Move where doc comment meant as comment check 2023-10-20 02:54:45 +00:00
ty.rs Format all the let chains in compiler 2023-10-13 08:59:36 +00:00