We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48d9f26 commit 7f4bc99Copy full SHA for 7f4bc99
compiler/rustc_next_trait_solver/src/solve/trait_goals.rs
@@ -193,9 +193,9 @@ where
193
// To avoid this we don't try to leak auto trait bounds if they can also be proven via
194
// item bounds of the opaque. These bounds are always applicable as auto traits must not
195
// have any generic parameters. They would also get preferred over the impl candidate
196
- // when merging candidates anyways.
+ // when merging candidates anyways. We
197
//
198
- // See tests/ui/
+ // See tests/ui/impl-trait/auto-trait-leakage/avoid-query-cycle-via-item-bound.rs.
199
if let ty::Alias(ty::Opaque, opaque_ty) = goal.predicate.self_ty().kind() {
200
debug_assert!(ecx.opaque_type_is_rigid(opaque_ty.def_id));
201
for item_bound in cx.item_self_bounds(opaque_ty.def_id).skip_binder() {
0 commit comments