Add span for struct tail recursion limit error

This commit is contained in:
Tawan Muadmuenwai
2025-09-15 21:24:57 +07:00
parent d1ed52b1f5
commit 6912631d3e
19 changed files with 111 additions and 65 deletions

View File

@@ -1057,6 +1057,7 @@ fn assemble_candidates_from_impls<'cx, 'tcx>(
Some(LangItem::PointeeTrait) => {
let tail = selcx.tcx().struct_tail_raw(
self_ty,
&obligation.cause,
|ty| {
// We throw away any obligations we get from this, since we normalize
// and confirm these obligations once again during confirmation