1
Fork 0

Manually register some bounds for a better span

This commit is contained in:
Michael Goulet 2024-11-08 04:27:20 +00:00
parent e4c1a0016c
commit 97dfe8b871
14 changed files with 156 additions and 14 deletions

View file

@ -104,6 +104,7 @@ impl<'tcx> InferCtxt<'tcx> {
infer::RelateParamBound(cause.span, sup_type, match cause.code().peel_derives() {
ObligationCauseCode::WhereClause(_, span)
| ObligationCauseCode::WhereClauseInExpr(_, span, ..)
| ObligationCauseCode::OpaqueTypeBound(span, _)
if !span.is_dummy() =>
{
Some(*span)