diff options
| author | Oli Scherer <github35764891676564198441@oli-obk.de> | 2024-12-21 05:35:01 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-21 05:35:01 +0000 |
| commit | 268a5f423e07342be211e9c7fdcca978a67a316f (patch) | |
| tree | f94edeea509f7a1b050b0ea44cfe853dbf8c635d /compiler/rustc_parse/src/parser/path.rs | |
| parent | fddff471f6b31312bbe88c70312cd036c8439794 (diff) | |
| parent | 591c47b2474e5a05024e96080f9cf001a13ad019 (diff) | |
| download | rust-268a5f423e07342be211e9c7fdcca978a67a316f.tar.gz rust-268a5f423e07342be211e9c7fdcca978a67a316f.zip | |
Merge pull request #4102 from rust-lang/rustup-2024-12-21
Automatic Rustup
Diffstat (limited to 'compiler/rustc_parse/src/parser/path.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/path.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_parse/src/parser/path.rs b/compiler/rustc_parse/src/parser/path.rs index 73612d1da29..39737b9e137 100644 --- a/compiler/rustc_parse/src/parser/path.rs +++ b/compiler/rustc_parse/src/parser/path.rs @@ -597,8 +597,7 @@ impl<'a> Parser<'a> { // When encountering severely malformed code where there are several levels of // nested unclosed angle args (`f::<f::<f::<f::<...`), we avoid severe O(n^2) // behavior by bailing out earlier (#117080). - e.emit(); - rustc_errors::FatalError.raise(); + e.emit().raise_fatal(); } Err(e) if is_first_invocation && self.unmatched_angle_bracket_count > 0 => { self.angle_bracket_nesting -= 1; |
