Skip to content

Commit fd22e87

Browse files
committed
fix flag computation for ExistentialPredicate::Projection
1 parent 2c69266 commit fd22e87

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

compiler/rustc_middle/src/ty/flags.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,7 @@ impl FlagComputation {
160160
match predicate {
161161
ty::ExistentialPredicate::Trait(tr) => computation.add_substs(tr.substs),
162162
ty::ExistentialPredicate::Projection(p) => {
163-
let mut proj_computation = FlagComputation::new();
164-
proj_computation.add_existential_projection(&p);
165-
self.add_bound_computation(proj_computation);
163+
computation.add_existential_projection(&p);
166164
}
167165
ty::ExistentialPredicate::AutoTrait(_) => {}
168166
}

0 commit comments

Comments
 (0)