Skip to content

Commit 7f4bc99

Browse files
committed
w
1 parent 48d9f26 commit 7f4bc99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: compiler/rustc_next_trait_solver/src/solve/trait_goals.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,9 @@ where
193193
// To avoid this we don't try to leak auto trait bounds if they can also be proven via
194194
// item bounds of the opaque. These bounds are always applicable as auto traits must not
195195
// have any generic parameters. They would also get preferred over the impl candidate
196-
// when merging candidates anyways.
196+
// when merging candidates anyways. We
197197
//
198-
// See tests/ui/
198+
// See tests/ui/impl-trait/auto-trait-leakage/avoid-query-cycle-via-item-bound.rs.
199199
if let ty::Alias(ty::Opaque, opaque_ty) = goal.predicate.self_ty().kind() {
200200
debug_assert!(ecx.opaque_type_is_rigid(opaque_ty.def_id));
201201
for item_bound in cx.item_self_bounds(opaque_ty.def_id).skip_binder() {

0 commit comments

Comments
 (0)