Migrate predicates_of and caller_bounds to Clause
This commit is contained in:
parent
36fb58e433
commit
fbdef58414
77 changed files with 478 additions and 705 deletions
|
@ -2657,7 +2657,7 @@ impl<'tcx> SelectionContext<'_, 'tcx> {
|
|||
}))
|
||||
})
|
||||
};
|
||||
let predicate = normalize_with_depth_to(
|
||||
let clause = normalize_with_depth_to(
|
||||
self,
|
||||
param_env,
|
||||
cause.clone(),
|
||||
|
@ -2665,7 +2665,12 @@ impl<'tcx> SelectionContext<'_, 'tcx> {
|
|||
predicate,
|
||||
&mut obligations,
|
||||
);
|
||||
obligations.push(Obligation { cause, recursion_depth, param_env, predicate });
|
||||
obligations.push(Obligation {
|
||||
cause,
|
||||
recursion_depth,
|
||||
param_env,
|
||||
predicate: clause.as_predicate(),
|
||||
});
|
||||
}
|
||||
|
||||
obligations
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue