Rename some FulfillmentErrorCode/ObligationCauseCode variants to be less redundant#124952
Rename some FulfillmentErrorCode/ObligationCauseCode variants to be less redundant#124952bors merged 5 commits intorust-lang:masterfrom
FulfillmentErrorCode/ObligationCauseCode variants to be less redundant#124952Conversation
|
Some changes occurred to the core trait solver cc @rust-lang/initiative-trait-system-refactor changes to the core type system |
FulfillmentErrorCode/ObligationCauseCode variants to be less redundant
| /// Must satisfy all of the where-clause predicates of the | ||
| /// given item. | ||
| ItemObligation(DefId), | ||
| MiscItem(DefId), |
There was a problem hiding this comment.
Alternative could be WhereClause, and then SpannedWhereClause, etc.
There was a problem hiding this comment.
Actually, I actually like WhereClause better
| WhereClause(DefId), | ||
|
|
||
| /// Like `ItemObligation`, but carries the span of the | ||
| /// Like `WhereClause`, but carries the span of the | ||
| /// predicate when it can be identified. | ||
| BindingObligation(DefId, Span), | ||
| SpannedWhereClause(DefId, Span), |
There was a problem hiding this comment.
could you instead change this to WhereClause(DefId, Option<Span>)? and change the matches to WhereClause(whatever, Some(span))?
| WhereClauseInExpr(DefId, HirId, usize), | ||
|
|
||
| /// Combines `ExprItemObligation` and `BindingObligation`. | ||
| ExprBindingObligation(DefId, Span, HirId, usize), | ||
| /// Combines `SpannedWhereClause` and `WhereClauseInExpr`. | ||
| SpannedWhereClauseInExpr(DefId, Span, HirId, usize), |
|
☔ The latest upstream changes (presumably #124961) made this pull request unmergeable. Please resolve the merge conflicts. |
|
@bors r=lcnr rollup p=1 (bitrotty) |
|
☀️ Test successful - checks-actions |
|
Finished benchmarking commit (2cce088): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 676.223s -> 673.906s (-0.34%) |
FulfillmentErrorCodevariants.ObligationCauseCode::to prefix a code, rather than using a glob import and naming them throughtraits::.ObligationCauseCodevariants -- I wasn't particularly thorough with thinking of a new names for these, so could workshop them if necessary.r? lcnr