Skip to content

Commit

Permalink
Auto merge of #115467 - compiler-errors:assoc-ty-object-safety, r=oli…
Browse files Browse the repository at this point in the history
…-obk

Do not require associated types with Self: Sized to uphold bounds when confirming object candidate

RPITITs and associated types that have `Self: Sized` bounds are opted out of the `dyn Trait` well-formedness check that happens during confirmation. This ensures that we can actually *use* `dyn Trait`s that have associated types that, e.g., have GATs and RPITITs and other naughty things as long as those are opted-out of object safety via a `Self: Sized` bound.

Fixes #115464

This seems like a natural part of rust-lang/rust#112319 (comment), and I don't think needs re-litigation.

r? `@oli-obk`
  • Loading branch information
bors committed Sep 5, 2023
2 parents ca5781b + 4ddb17a commit 61392c5
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 61392c5

Please sign in to comment.