-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Fix async-std by special-casing rustdoc in typeck #75127
Conversation
This comment has been minimized.
This comment has been minimized.
r? @ghost |
rustdoc-ui failures |
- Don't mark impl trait as an error
This seems like the easiest fix to me for the The hard thing is going to be fixing the cycle on types with infinite size. If any compiler team member has ideas, please let me know. |
This comment has been minimized.
This comment has been minimized.
UI test failures are fixed so this might actually be feasible. Need to figure out how to fix the cycle error somehow. |
c4ff128
to
9fa7c32
Compare
This comment has been minimized.
This comment has been minimized.
3205406
to
a356ed8
Compare
This runs _just_ enough of typeck that later queries don't panic. Because this is in the same part of the compiler that errors on `impl Trait`, this special-cases impl Trait for rustdoc and no one else. Everything is fine.
@bors r+ |
📌 Commit a306e12 has been approved by |
@bors rollup=never (I want to be able to easily bisect to this change if this hack has unexpected consequences down the road.) |
☀️ Test successful - checks-actions, checks-azure |
@yoshuawuyts @dignifiedquire Stuff should be fine in the next nightly! You can try it out now if you'd like with RTIM, and please let us know if things are still broken. |
This is the same sort of idea as #73566, but for typeck instead of resolve. I don't claim this is anywhere close to a good solution, but hopefully it's enough to unbreak async-std until we find a more principled fix.
On the bright side, unlike everybody_loops, this allows errors in any
impl Trait
, not justasync fn
.Fixes #75100.