1
Fork 0

Don't require associated types with Self: Sized bounds in dyn Trait objects

This commit is contained in:
Oli Scherer 2023-06-05 15:57:21 +00:00
parent 9227ff28af
commit ca581f9161
5 changed files with 23 additions and 14 deletions

View file

@ -922,5 +922,10 @@ pub fn contains_illegal_impl_trait_in_trait<'tcx>(
}
pub fn provide(providers: &mut Providers) {
*providers = Providers { object_safety_violations, check_is_object_safe, ..*providers };
*providers = Providers {
object_safety_violations,
check_is_object_safe,
generics_require_sized_self,
..*providers
};
}