Revert some span_bugs to span_delayed_bug.

Fixes #121410.
Fixes #121414.
Fixes #121418.
Fixes #121431.
This commit is contained in:
Nicholas Nethercote
2024-02-22 14:41:32 +11:00
parent d8b00690ec
commit 4f83e50f98
12 changed files with 119 additions and 6 deletions

View File

@@ -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;
}
}