Some improvements to the async docs by wooster0 · Pull Request #91192 · rust-lang/rust (original) (raw)

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 andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation19 Commits1 Checks0 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

wooster0

The goal here is to make the docs overall a little bit more comprehensive and add more links between the things.

One thing that's not working yet is the links to the keywords. Somehow I couldn't get them to work.

r? @GuillaumeGomez do you know how I could get the keyword links to work?

@rust-log-analyzer

This comment has been minimized.

GuillaumeGomez

GuillaumeGomez

GuillaumeGomez

GuillaumeGomez

GuillaumeGomez

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try with these links and we'll see if the checker is happy. :)

@camelid camelid added the T-libs

Relevant to the library team, which will review and decide on the PR/issue.

label

Nov 25, 2021

@rust-log-analyzer

This comment has been minimized.

GuillaumeGomez

@rust-log-analyzer

This comment has been minimized.

@wooster0

Oh, on std the links work (I've tested them locally) but they are broken on core, any way to fix this?

On a note, optimally it'd be nice if one could link to keywords simply by writing

/// hello to [if], [match] and [async]

etc.
Should I open an issue for that on here?

@GuillaumeGomez

doc(keyword) will remain unstable because it's only supposed to be used in the std, so I don't think they'll ever be supported in the intra doc links (but you can open an issue if you think it's worth discussing).

To solve on core, I suppose adding ../std/ in all your links will solve it.

@wooster0

@GuillaumeGomez oh ok I just thought allowing that only within the std might be nice because then this PR would have a few commits less.

@wooster0

@wooster0

GuillaumeGomez

@GuillaumeGomez

@bors

📌 Commit 297364e has been approved by GuillaumeGomez

@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

Feb 20, 2022

matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request

Feb 20, 2022

@matthiaskrgr

Some improvements to the async docs

The goal here is to make the docs overall a little bit more comprehensive and add more links between the things.

One thing that's not working yet is the links to the keywords. Somehow I couldn't get them to work.

r? @GuillaumeGomez do you know how I could get the keyword links to work?

Manishearth added a commit to Manishearth/rust that referenced this pull request

Feb 20, 2022

@Manishearth

Some improvements to the async docs

The goal here is to make the docs overall a little bit more comprehensive and add more links between the things.

One thing that's not working yet is the links to the keywords. Somehow I couldn't get them to work.

r? @GuillaumeGomez do you know how I could get the keyword links to work?

Manishearth added a commit to Manishearth/rust that referenced this pull request

Feb 21, 2022

@Manishearth

Some improvements to the async docs

The goal here is to make the docs overall a little bit more comprehensive and add more links between the things.

One thing that's not working yet is the links to the keywords. Somehow I couldn't get them to work.

r? @GuillaumeGomez do you know how I could get the keyword links to work?

bors added a commit to rust-lang-ci/rust that referenced this pull request

Feb 21, 2022

@bors

…askrgr

Rollup of 10 pull requests

Successful merges:

Failed merges:

r? @ghost @rustbot modify labels: rollup

tmandry

@@ -5,7 +5,7 @@ use crate::ops;
use crate::pin::Pin;
use crate::task::{Context, Poll};
/// A future represents an asynchronous computation.
/// A future represents an asynchronous computation obtained by use of [`async`].

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might be confusing; it isn't only obtained via async since Future is implemented manually for e.g. system resources. Most await chains bottom out in one of these manual implementations.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to follow up with another PR.

Labels

S-waiting-on-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

T-libs

Relevant to the library team, which will review and decide on the PR/issue.