-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Make TAIT behave exactly like RPIT #96727
Conversation
This comment has been minimized.
This comment has been minimized.
f93c109
to
9a6821a
Compare
☔ The latest upstream changes (presumably #95565) made this pull request unmergeable. Please resolve the merge conflicts. |
Addressed review comment and rebased (causing some diagnostics changes in positions of diagnostics) |
☔ The latest upstream changes (presumably #97892) made this pull request unmergeable. Please resolve the merge conflicts. |
This comment was marked as resolved.
This comment was marked as resolved.
☔ The latest upstream changes (presumably #98656) made this pull request unmergeable. Please resolve the merge conflicts. |
… async fn desugaring, make that explicit
@bors r+ |
📌 Commit c33b127 has been approved by |
Make TAIT behave exactly like RPIT fixes rust-lang#96552 This makes type-alias-impl-trait behave like return-position-impl-trait. Unfortunately it also causes some cases to stop compiling due to "needing type annotations" and makes panicking cause fallback for the hidden type to `()`. All of these are addressable, but we should probably address them for RPIT and TAIT together r? `@lcnr`
…askrgr Rollup of 6 pull requests Successful merges: - rust-lang#96727 (Make TAIT behave exactly like RPIT) - rust-lang#98681 (rustdoc-json: Make default value of blanket impl assoc types work) - rust-lang#98682 (add tests for ICE 94432) - rust-lang#98683 (add test for ice 68875) - rust-lang#98685 (Replace `sort_modules_alphabetically` boolean with enum) - rust-lang#98687 (add test for 47814) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
fixes #96552
This makes type-alias-impl-trait behave like return-position-impl-trait. Unfortunately it also causes some cases to stop compiling due to "needing type annotations" and makes panicking cause fallback for the hidden type to
()
.All of these are addressable, but we should probably address them for RPIT and TAIT together
r? @lcnr