mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-20 19:04:21 +00:00
fix flag computation for ExistentialPredicate::Projection
This commit is contained in:
parent
2c69266c06
commit
fd22e87afc
@ -160,9 +160,7 @@ impl FlagComputation {
|
||||
match predicate {
|
||||
ty::ExistentialPredicate::Trait(tr) => computation.add_substs(tr.substs),
|
||||
ty::ExistentialPredicate::Projection(p) => {
|
||||
let mut proj_computation = FlagComputation::new();
|
||||
proj_computation.add_existential_projection(&p);
|
||||
self.add_bound_computation(proj_computation);
|
||||
computation.add_existential_projection(&p);
|
||||
}
|
||||
ty::ExistentialPredicate::AutoTrait(_) => {}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user