1
Fork 0

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

@ -172,9 +172,7 @@ fn do_normalize_predicates<'tcx>(
// the normalized predicates.
let errors = infcx.resolve_regions(&outlives_env);
if !errors.is_empty() {
// @lcnr: Let's still ICE here for now. I want a test case
// for that.
tcx.dcx().span_bug(
tcx.dcx().span_delayed_bug(
span,
format!("failed region resolution while normalizing {elaborated_env:?}: {errors:?}"),
);