imrpove type_op failure ICE
diff --git a/compiler/rustc_trait_selection/src/traits/query/type_op/custom.rs b/compiler/rustc_trait_selection/src/traits/query/type_op/custom.rs
index 6ce6850..a96cb73 100644
--- a/compiler/rustc_trait_selection/src/traits/query/type_op/custom.rs
+++ b/compiler/rustc_trait_selection/src/traits/query/type_op/custom.rs
@@ -100,9 +100,9 @@ pub fn scrape_region_constraints<'tcx, Op, R>(
} 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:?}"
+ )))
}
})?;