Rollup merge of #146971 - lcnr:fix-writeback, r=BoxyUwU

fix ICE in writeback due to bound regions

fixes rust-lang/rust#117808

r? `@BoxyUwU`
This commit is contained in:
Matthias Krüger
2025-09-24 23:33:29 +02:00
committed by GitHub
4 changed files with 21 additions and 32 deletions

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:?}"
)))
}
})?;