-
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
Rustdoc render async function re-export #64599
Conversation
042503e
to
ab3fcc0
Compare
Won't this still render with |
@Centril fixing associate_method, |
ab3fcc0
to
73f5bac
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
73f5bac
to
9ffb1ce
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great, thanks @csmoe!
One question: can we adjust the query to be fn asyncness()
instead of fn is_async_fn()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, one other thing:
We don't have any test for this! Can you add a test?
Here is an example of such a test for async-fn (crate-local only, obviously):
https://github.com/rust-lang/rust/blob/master/src/test/rustdoc/async-fn.rs
and this is an example testing the cross-crate case specifically:
https://github.com/rust-lang/rust/blob/master/src/test/rustdoc/cross-crate-links.rs
but maybe @QuietMisdreavus can give some better examples of just the tests we want in this case.
(This is for the bug around async fn across crates, @QuietMisdreavus)
bf04111
to
726fe3b
Compare
@nikomatsakis I added the tests into https://github.com/rust-lang/rust/blob/master/src/test/rustdoc/inline_cross/impl_trait.rs as it covers bare function and impl re-exports. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@csmoe great, thanks! I left a few more (quite small) nits.
r=me once fixed
a1587c5
to
04ffef1
Compare
This comment has been minimized.
This comment has been minimized.
04ffef1
to
a744fd0
Compare
@bors r+ |
📌 Commit a744fd0 has been approved by |
I'm assuming this will not make the 1.39 beta cutoff. If so, I think we should consider backporting it, as it resolves a "quality" issue for async await. Basically, the rustdoc for library facades that make use of |
Yep, this won't make it to the cutoff as @Mark-Simulacrum is branching master to beta in an hour or so. Backporting this seems rather safe so it is reasonable I'd say. |
…sakis Rustdoc render async function re-export Closes rust-lang#63710 r? @nikomatsakis
Rollup of 7 pull requests Successful merges: - #64324 (rustc: Fix mixing crates with different `share_generics`) - #64428 (Error explanation e0524) - #64481 (A more explanatory thread local storage panic message) - #64599 (Rustdoc render async function re-export) - #64743 (Update cargo) - #64746 (Remove blanket silencing of "type annotation needed" errors) - #64753 (Don't emit explain with json short messages.) Failed merges: r? @ghost
discussed at T-compiler meeting. Approved for beta backport. |
[beta] switch to stable bootstrap and rollup backports Contains the following: * Account for the Zero sub-pattern case. #64748 * relnotes: make compatibility section more sterile and fix rustc version #64742 * Rustdoc render async function re-export #64599 * Update cargo #64773 * switches us to stable bootstrap (not dev-static) (no PR)
Closes #63710
r? @nikomatsakis