Consolidate obligation cause codes for where clauses
This commit is contained in:
parent
ef15976387
commit
e444017b49
25 changed files with 137 additions and 139 deletions
|
@ -2059,10 +2059,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
|
|||
// We currently do not store the `DefId` in the `ConstraintCategory`
|
||||
// for performances reasons. The error reporting code used by NLL only
|
||||
// uses the span, so this doesn't cause any problems at the moment.
|
||||
Some(ObligationCauseCode::SpannedWhereClause(
|
||||
CRATE_DEF_ID.to_def_id(),
|
||||
predicate_span,
|
||||
))
|
||||
Some(ObligationCauseCode::WhereClause(CRATE_DEF_ID.to_def_id(), predicate_span))
|
||||
} else {
|
||||
None
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue