Skip to content

Make TAIT behave exactly like RPIT#96727

Merged
bors merged 3 commits intorust-lang:masterfrom
oli-obk:no_expect
Jun 30, 2022
Merged

Make TAIT behave exactly like RPIT#96727
bors merged 3 commits intorust-lang:masterfrom
oli-obk:no_expect

Conversation

@oli-obk
Copy link
Copy Markdown
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

Loading
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