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
|
@ -193,6 +193,11 @@ pub enum ObligationCauseCode<'tcx> {
|
|||
/// The span corresponds to the clause.
|
||||
WhereClause(DefId, Span),
|
||||
|
||||
/// Represents a bound for an opaque we are checking the well-formedness of.
|
||||
/// The def-id corresponds to a specific definition site that we found the
|
||||
/// hidden type from, if any.
|
||||
OpaqueTypeBound(Span, Option<LocalDefId>),
|
||||
|
||||
/// Like `WhereClause`, but also identifies the expression
|
||||
/// which requires the `where` clause to be proven, and also
|
||||
/// identifies the index of the predicate in the `predicates_of`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue