Manually register some bounds for a better span
This commit is contained in:
parent
e4c1a0016c
commit
97dfe8b871
14 changed files with 156 additions and 14 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue