-
Notifications
You must be signed in to change notification settings - Fork 13.5k
trait_sel: add builtin impl for PointeeSized
#142663
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
trait_sel: add builtin impl for PointeeSized
#142663
Conversation
During review of rust-lang#137944, we thought we could remove the builtin impl of `PointeeSized` as it was removed during lowering, but users can still write `dyn PointeeSized` and so we need the builtin impl.
Some changes occurred to the core trait solver cc @rust-lang/initiative-trait-system-refactor |
|
Do we even want to allow I'd somewhat opt to just rejecting |
I do agree. I don't think we should only land something like #142661 which can report things like I think it would make sense to add a separate error somewhere for |
Closing in favour of #143104 |
…sized-deny, r=compiler-errors hir_analysis: prohibit `dyn PointeeSized` Fixes rust-lang#142652 Supersedes rust-lang#142663 `dyn PointeeSized` is nonsensical as a `dyn PointeeSized` needs to be `MetaSized`, so lets reject it to avoid hitting code paths that expect a builtin impl for `PointeeSized` r? `@compiler-errors`
Rollup merge of #143104 - davidtwco:issue-142652-dyn-pointeesized-deny, r=compiler-errors hir_analysis: prohibit `dyn PointeeSized` Fixes #142652 Supersedes #142663 `dyn PointeeSized` is nonsensical as a `dyn PointeeSized` needs to be `MetaSized`, so lets reject it to avoid hitting code paths that expect a builtin impl for `PointeeSized` r? `@compiler-errors`
…y, r=compiler-errors hir_analysis: prohibit `dyn PointeeSized` Fixes rust-lang/rust#142652 Supersedes rust-lang/rust#142663 `dyn PointeeSized` is nonsensical as a `dyn PointeeSized` needs to be `MetaSized`, so lets reject it to avoid hitting code paths that expect a builtin impl for `PointeeSized` r? `@compiler-errors`
Fixes #142652
Supersedes #142661
During review of #137944, we thought we could remove the builtin impl of
PointeeSized
as it was removed during lowering, but users can still writedyn PointeeSized
and so we need the builtin impl.r? @oli-obk