Skip to content
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 doesn't render constness of bare functions on nightly #44187

Closed
QuietMisdreavus opened this issue Aug 30, 2017 · 1 comment
Closed

rustdoc doesn't render constness of bare functions on nightly #44187

QuietMisdreavus opened this issue Aug 30, 2017 · 1 comment
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one. T-dev-tools Relevant to the dev-tools subteam, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@QuietMisdreavus
Copy link
Member

On today's nightly docs for std::mem::size_of:

image

But if you click [src], you can see that it's supposed to be const:

image

Rustdoc is supposed to print the constness of functions on nightly. It currently works for associated functions (e.g. AtomicBool::new) but bare functions like size_of are currently not working.

@steveklabnik steveklabnik added T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. T-dev-tools Relevant to the dev-tools subteam, which will review and decide on the PR/issue. labels Aug 30, 2017
@GuillaumeGomez
Copy link
Member

Taking a look.

@shepmaster shepmaster added the C-enhancement Category: An issue proposing an enhancement or a PR with one. label Sep 1, 2017
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this issue Sep 13, 2017
…=QuietMisdreavus

Fix rendering of const keyword for functions

Fixes rust-lang#44187.

r? @QuietMisdreavus
frewsxcv added a commit to frewsxcv/rust that referenced this issue Sep 14, 2017
…=QuietMisdreavus

Fix rendering of const keyword for functions

Fixes rust-lang#44187.

r? @QuietMisdreavus
frewsxcv added a commit to frewsxcv/rust that referenced this issue Sep 15, 2017
…=QuietMisdreavus

Fix rendering of const keyword for functions

Fixes rust-lang#44187.

r? @QuietMisdreavus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one. T-dev-tools Relevant to the dev-tools subteam, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

4 participants