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

Add missing documentation for std::char types #87618

Merged
merged 1 commit into from
Mar 12, 2022

Conversation

GuillaumeGomez
Copy link
Member

No description provided.

@GuillaumeGomez GuillaumeGomez added T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools labels Jul 30, 2021
@rust-highfive
Copy link
Collaborator

r? @kennytm

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 30, 2021
@GuillaumeGomez GuillaumeGomez changed the title Add missing document for std::char types Add missing documentation for std::char types Jul 30, 2021
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

library/core/src/char/convert.rs Outdated Show resolved Hide resolved
library/core/src/char/convert.rs Outdated Show resolved Hide resolved
@rust-log-analyzer

This comment has been minimized.

@GuillaumeGomez
Copy link
Member Author

GuillaumeGomez commented Aug 3, 2021

I forgot that we don't support anchors for primitive types yet... Needs to wait for #87073 to be merged.

@kennytm kennytm added S-blocked Status: Marked as blocked ❌ on something else such as an RFC or other implementation work. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 3, 2021
@GuillaumeGomez GuillaumeGomez added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-blocked Status: Marked as blocked ❌ on something else such as an RFC or other implementation work. labels Sep 13, 2021
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@GuillaumeGomez
Copy link
Member Author

@jyn514: ^ wasn't this restriction lifted?

@jyn514
Copy link
Member

jyn514 commented Sep 13, 2021

@GuillaumeGomez it needs to wait for the bootstrap compiler to be bumped, so another 6 weeks. To avoid waiting longer (e.g. if it turns out rustdoc is buggy), you could run x.py doc --stage 1 library/std to make sure it will work at that time.

(You can avoid having to build rustc from source by setting download-rustc = true and using --stage 2.)

@jyn514 jyn514 added S-blocked Status: Marked as blocked ❌ on something else such as an RFC or other implementation work. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 13, 2021
@GuillaumeGomez
Copy link
Member Author

I did and it worked, which is why I was confused. Well, let's wait for 6 weeks then!

@jyn514
Copy link
Member

jyn514 commented Nov 9, 2021

@GuillaumeGomez it's been 6 weeks :)

@jyn514 jyn514 removed the S-blocked Status: Marked as blocked ❌ on something else such as an RFC or other implementation work. label Nov 9, 2021
@jyn514 jyn514 added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Nov 9, 2021
@GuillaumeGomez
Copy link
Member Author

Let's see! :D

@rust-log-analyzer

This comment has been minimized.

@@ -199,6 +199,8 @@ impl const From<u8> for char {
}

/// An error which can be returned when parsing a char.
///
/// This `struct` is created when using the [`char::from_str`](char#tymethod.from_str) method.
Copy link
Member Author

Choose a reason for hiding this comment

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

I think it's still not ready:

warning: unresolved link to `char::from_str`
 --> foo.rs:1:7
  |
1 | /// [`char::from_str`]
  |       ^^^^^^^^^^^^^^ the builtin type `char` has no associated item named `from_str`

We need #90703 to be fixed first.

Copy link
Member

Choose a reason for hiding this comment

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

Wait, this doesn't match the error above though. The CI failure resolved the link correctly, it's just a dead link for some reason. What version of rustdoc did you use to test locally? Does the error change if you use beta?

Copy link
Member

Choose a reason for hiding this comment

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

Oh, it's because you used a fragment link instead of an intra-doc link.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, which is invalid too. I'll update the current code but even the fixed version is broken for the moment.

@jyn514 jyn514 added S-blocked Status: Marked as blocked ❌ on something else such as an RFC or other implementation work. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Nov 10, 2021
@rust-log-analyzer

This comment has been minimized.

@camelid
Copy link
Member

camelid commented Mar 6, 2022

We need #90703 to be fixed first.

#90703 is fixed now. I think this PR is no longer blocked?

@camelid camelid added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-blocked Status: Marked as blocked ❌ on something else such as an RFC or other implementation work. labels Mar 6, 2022
@GuillaumeGomez
Copy link
Member Author

Let's give it another try!

@GuillaumeGomez
Copy link
Member Author

Seems like the CI passed this time. \o/

@GuillaumeGomez GuillaumeGomez added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Mar 8, 2022
@GuillaumeGomez
Copy link
Member Author

Forgot to r+ it...

@bors: r=jyn514,camelid

@bors
Copy link
Contributor

bors commented Mar 11, 2022

📌 Commit 5b5649f has been approved by jyn514,camelid

@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 Mar 11, 2022
bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 11, 2022
Rollup of 7 pull requests

Successful merges:

 - rust-lang#87618 (Add missing documentation for std::char types)
 - rust-lang#94769 (Collapse blanket and auto-trait impls by default)
 - rust-lang#94798 (`parse_tt` refactorings)
 - rust-lang#94818 (Rename `IntoFuture::Future` to `IntoFuture::IntoFuture`)
 - rust-lang#94827 (CTFE/Miri: detect out-of-bounds pointers in offset_from)
 - rust-lang#94838 (Make float parsing docs more comprehensive)
 - rust-lang#94839 (Suggest using double colon when a struct field type include single colon)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 8505610 into rust-lang:master Mar 12, 2022
@rustbot rustbot added this to the 1.61.0 milestone Mar 12, 2022
@GuillaumeGomez GuillaumeGomez deleted the std-char-types-doc branch March 12, 2022 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants