Eagerly merge hidden types.
This commit is contained in:
parent
a745797142
commit
38f50d1ecb
17 changed files with 125 additions and 79 deletions
|
@ -652,7 +652,7 @@ impl<'a, 'b, 'tcx> FulfillProcessor<'a, 'b, 'tcx> {
|
|||
&obligation.cause,
|
||||
obligation.param_env,
|
||||
) {
|
||||
Ok(value) => ProcessResult::Changed(mk_pending(value)),
|
||||
Ok(value) => ProcessResult::Changed(mk_pending(value.obligations)),
|
||||
Err(err) => ProcessResult::Error(FulfillmentErrorCode::CodeSubtypeError(
|
||||
ExpectedFound::new(true, a, b),
|
||||
err,
|
||||
|
|
|
@ -705,8 +705,8 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
|
|||
&obligation.cause,
|
||||
obligation.param_env,
|
||||
) {
|
||||
Ok(obligations) => {
|
||||
self.evaluate_predicates_recursively(previous_stack, obligations)
|
||||
Ok(res) => {
|
||||
self.evaluate_predicates_recursively(previous_stack, res.obligations)
|
||||
}
|
||||
Err(_) => Ok(EvaluatedToErr),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue