Skip to content
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

Merged
merged 3 commits into from
Jun 30, 2022
Merged

Make TAIT behave exactly like RPIT #96727

merged 3 commits into from
Jun 30, 2022

Conversation

oli-obk
Copy link
Contributor

@oli-obk oli-obk commented May 5, 2022

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

@rustbot rustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label May 5, 2022
@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 5, 2022
@rust-log-analyzer

This comment has been minimized.

@oli-obk oli-obk force-pushed the no_expect branch 2 times, most recently from f93c109 to 9a6821a Compare May 27, 2022 19:58
@bors
Copy link
Contributor

bors commented Jun 7, 2022

☔ The latest upstream changes (presumably #95565) made this pull request unmergeable. Please resolve the merge conflicts.

@oli-obk
Copy link
Contributor Author

oli-obk commented Jun 13, 2022

Addressed review comment and rebased (causing some diagnostics changes in positions of diagnostics)

@bors
Copy link
Contributor

bors commented Jun 17, 2022

☔ The latest upstream changes (presumably #97892) made this pull request unmergeable. Please resolve the merge conflicts.

@oli-obk oli-obk changed the title Remove opaque types from typeck expectations Make TAIT behave exactly like RPIT Jun 29, 2022
@lcnr

This comment was marked as resolved.

@bors
Copy link
Contributor

bors commented Jun 29, 2022

☔ The latest upstream changes (presumably #98656) made this pull request unmergeable. Please resolve the merge conflicts.

@lcnr
Copy link
Contributor

lcnr commented Jun 29, 2022

@bors r+

@bors
Copy link
Contributor

bors commented Jun 29, 2022

📌 Commit c33b127 has been approved by lcnr

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 29, 2022
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Jun 29, 2022
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`
bors added a commit to rust-lang-ci/rust that referenced this pull request Jun 30, 2022
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Experiment: try out removing opaque types from typeck expectations
6 participants