about summary refs log tree commit diff
path: root/compiler/rustc_ty_utils/src
diff options
context:
space:
mode:
authorSantiago Pastorino <spastorino@gmail.com>2023-06-21 19:09:18 -0300
committerSantiago Pastorino <spastorino@gmail.com>2023-06-29 14:26:26 -0300
commit4925b57782bafc2ae26568154b5f085d75b5792c (patch)
tree070e85b349233c5bdd6be9b72e9c4867b7b0a6ea /compiler/rustc_ty_utils/src
parentd70deac161b58156bb25cb748a678b31702b93e8 (diff)
downloadrust-4925b57782bafc2ae26568154b5f085d75b5792c.tar.gz
rust-4925b57782bafc2ae26568154b5f085d75b5792c.zip
Add bidirectional where clauses on RPITIT synthesized GATs
Diffstat (limited to 'compiler/rustc_ty_utils/src')
-rw-r--r--compiler/rustc_ty_utils/src/assoc.rs12
1 files changed, 0 insertions, 12 deletions
diff --git a/compiler/rustc_ty_utils/src/assoc.rs b/compiler/rustc_ty_utils/src/assoc.rs
index 5b731641e9d..b59458bbf35 100644
--- a/compiler/rustc_ty_utils/src/assoc.rs
+++ b/compiler/rustc_ty_utils/src/assoc.rs
@@ -340,12 +340,6 @@ fn associated_type_for_impl_trait_in_trait(
         }
     });
 
-    // There are no predicates for the synthesized associated type.
-    trait_assoc_ty.explicit_predicates_of(ty::GenericPredicates {
-        parent: Some(trait_def_id.to_def_id()),
-        predicates: &[],
-    });
-
     // There are no inferred outlives for the synthesized associated type.
     trait_assoc_ty.inferred_outlives_of(&[]);
 
@@ -424,12 +418,6 @@ fn associated_type_for_impl_trait_in_impl(
         }
     });
 
-    // There are no predicates for the synthesized associated type.
-    impl_assoc_ty.explicit_predicates_of(ty::GenericPredicates {
-        parent: Some(impl_local_def_id.to_def_id()),
-        predicates: &[],
-    });
-
     // There are no inferred outlives for the synthesized associated type.
     impl_assoc_ty.inferred_outlives_of(&[]);