about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/path.rs
diff options
context:
space:
mode:
authorThe Miri Cronjob Bot <miri@cron.bot>2024-12-21 05:09:29 +0000
committerThe Miri Cronjob Bot <miri@cron.bot>2024-12-21 05:09:29 +0000
commit591c47b2474e5a05024e96080f9cf001a13ad019 (patch)
treef94edeea509f7a1b050b0ea44cfe853dbf8c635d /compiler/rustc_parse/src/parser/path.rs
parent9dac973f8406fdf551bb2f0374a429c48729cb55 (diff)
parent13170cd787cb733ed24842ee825bcbd98dc01476 (diff)
downloadrust-591c47b2474e5a05024e96080f9cf001a13ad019.tar.gz
rust-591c47b2474e5a05024e96080f9cf001a13ad019.zip
Merge from rustc
Diffstat (limited to 'compiler/rustc_parse/src/parser/path.rs')
-rw-r--r--compiler/rustc_parse/src/parser/path.rs3
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;