File tree 1 file changed +2
-2
lines changed
compiler/rustc_next_trait_solver/src/solve
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -193,9 +193,9 @@ where
193
193
// To avoid this we don't try to leak auto trait bounds if they can also be proven via
194
194
// item bounds of the opaque. These bounds are always applicable as auto traits must not
195
195
// have any generic parameters. They would also get preferred over the impl candidate
196
- // when merging candidates anyways.
196
+ // when merging candidates anyways. We
197
197
//
198
- // See tests/ui/
198
+ // See tests/ui/impl-trait/auto-trait-leakage/avoid-query-cycle-via-item-bound.rs.
199
199
if let ty:: Alias ( ty:: Opaque , opaque_ty) = goal. predicate . self_ty ( ) . kind ( ) {
200
200
debug_assert ! ( ecx. opaque_type_is_rigid( opaque_ty. def_id) ) ;
201
201
for item_bound in cx. item_self_bounds ( opaque_ty. def_id ) . skip_binder ( ) {
You can’t perform that action at this time.
0 commit comments