Uh oh!
There was an error while loading. Please reload this page.
Rustdoc render async function re-export - #64599
Conversation
042503e to
ab3fcc0CompareCentril
commented
Sep 19, 2019
Won't this still render with |
csmoe
commented
Sep 19, 2019
@Centril fixing associate_method, |
ab3fcc0 to
73f5bacCompare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
73f5bac to
9ffb1ceCompare
nikomatsakis
left a comment
There was a problem hiding this comment.
This looks great, thanks @csmoe!
One question: can we adjust the query to be fn asyncness() instead of fn is_async_fn()?
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
nikomatsakis
left a comment
There was a problem hiding this comment.
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)
Uh oh!
There was an error while loading. Please reload this page.
bf04111 to
726fe3bComparecsmoe
commented
Sep 21, 2019
@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. |
nikomatsakis
left a comment
There was a problem hiding this comment.
@csmoe great, thanks! I left a few more (quite small) nits.
r=me once fixed
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
a1587c5 to
04ffef1Compare
This comment has been minimized.
This comment has been minimized.
04ffef1 to
a744fd0Comparenikomatsakis
commented
Sep 24, 2019
@bors r+ |
bors
commented
Sep 24, 2019
📌 Commit a744fd0 has been approved by |
nikomatsakis
commented
Sep 24, 2019
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 |
Centril
commented
Sep 24, 2019
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 Closesrust-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
pnkfelix
commented
Sep 26, 2019
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