about summary refs log tree commit diff
path: root/compiler/rustc_ast_lowering/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-02-22 14:41:32 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2024-02-23 08:35:18 +1100
commit4f83e50f98f60d192e258b091d39d85c7d346310 (patch)
tree2f1f1679297d49133cb3b1f7767da27e76de2aef /compiler/rustc_ast_lowering/src
parentd8b00690ec3aa2d2fb0d3eb00e862195501186f9 (diff)
downloadrust-4f83e50f98f60d192e258b091d39d85c7d346310.tar.gz
rust-4f83e50f98f60d192e258b091d39d85c7d346310.zip
Revert some `span_bug`s to `span_delayed_bug`.
Fixes #121410.
Fixes #121414.
Fixes #121418.
Fixes #121431.
Diffstat (limited to 'compiler/rustc_ast_lowering/src')
-rw-r--r--compiler/rustc_ast_lowering/src/lib.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_ast_lowering/src/lib.rs b/compiler/rustc_ast_lowering/src/lib.rs
index ef843da7307..a5be91bb872 100644
--- a/compiler/rustc_ast_lowering/src/lib.rs
+++ b/compiler/rustc_ast_lowering/src/lib.rs
@@ -1636,7 +1636,9 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
                     if let Some(old_def_id) = self.orig_opt_local_def_id(param) {
                         old_def_id
                     } else {
-                        self.dcx().span_bug(lifetime.ident.span, "no def-id for fresh lifetime");
+                        self.dcx()
+                            .span_delayed_bug(lifetime.ident.span, "no def-id for fresh lifetime");
+                        continue;
                     }
                 }