about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-10-26 17:45:44 +0200
committerGitHub <noreply@github.com>2023-10-26 17:45:44 +0200
commit7eb05480e964012eafb5ac7df8f492eb197d41c5 (patch)
treec87029631627b2aef4104985676d1275dab6eabf /compiler/rustc_interface/src
parentb66c6e719f6b1905c5af59ad8b3d4a7f1ac1143b (diff)
parent2dec1bc685c58747c81391b1c5a53ba91400c50d (diff)
downloadrust-7eb05480e964012eafb5ac7df8f492eb197d41c5.tar.gz
rust-7eb05480e964012eafb5ac7df8f492eb197d41c5.zip
Rollup merge of #117143 - estebank:issue-117080, r=wesleywiser
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 https://github.com/rust-lang/rust/issues/117080, fix https://github.com/rust-lang/rust/issues/115414.
Diffstat (limited to 'compiler/rustc_interface/src')
0 files changed, 0 insertions, 0 deletions