Rename ToPredicate for Upcast
This commit is contained in:
@@ -303,7 +303,7 @@ impl<'tcx> AutoTraitFinder<'tcx> {
|
||||
Err(SelectionError::Unimplemented) => {
|
||||
if self.is_param_no_infer(pred.skip_binder().trait_ref.args) {
|
||||
already_visited.remove(&pred);
|
||||
self.add_user_pred(&mut user_computed_preds, pred.to_predicate(self.tcx));
|
||||
self.add_user_pred(&mut user_computed_preds, pred.upcast(self.tcx));
|
||||
predicates.push_back(pred);
|
||||
} else {
|
||||
debug!(
|
||||
|
||||
Reference in New Issue
Block a user