hir_analysis: skip self type of host effect preds
Like trait predicates, the self type ought to be skipped here.
This commit is contained in:
parent
7bf6fc16f2
commit
0bed12e02d
3 changed files with 6 additions and 3 deletions
|
@ -198,6 +198,10 @@ fn variance_of_opaque(
|
|||
ty::ClauseKind::Trait(ty::TraitPredicate {
|
||||
trait_ref: ty::TraitRef { def_id: _, args, .. },
|
||||
polarity: _,
|
||||
})
|
||||
| ty::ClauseKind::HostEffect(ty::HostEffectPredicate {
|
||||
trait_ref: ty::TraitRef { def_id: _, args, .. },
|
||||
constness: _,
|
||||
}) => {
|
||||
for arg in &args[1..] {
|
||||
arg.visit_with(&mut collector);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue