imrpove type_op failure ICE

This commit is contained in:
lcnr
2025-09-24 13:04:36 +02:00
parent 32d24f9efa
commit 2886ca496a

View File

@@ -100,9 +100,9 @@ where
} else if let Err(guar) = infcx.tcx.check_potentially_region_dependent_goals(root_def_id) {
Err(guar)
} else {
Err(infcx
.dcx()
.delayed_bug(format!("errors selecting obligation during MIR typeck: {errors:?}")))
Err(infcx.dcx().delayed_bug(format!(
"errors selecting obligation during MIR typeck: {name} {root_def_id:?} {errors:?}"
)))
}
})?;