-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Conversation
r? @kennytm (rust-highfive has picked a reviewer for you, use r? to override) |
0cfb99e
to
76bb9d0
Compare
This comment has been minimized.
This comment has been minimized.
76bb9d0
to
6ebcbf2
Compare
This comment has been minimized.
This comment has been minimized.
6ebcbf2
to
85cad83
Compare
85cad83
to
f16989f
Compare
This comment has been minimized.
This comment has been minimized.
I forgot that we don't support anchors for primitive types yet... Needs to wait for #87073 to be merged. |
f16989f
to
516957a
Compare
This comment has been minimized.
This comment has been minimized.
516957a
to
1edc757
Compare
This comment has been minimized.
This comment has been minimized.
@jyn514: ^ wasn't this restriction lifted? |
@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 (You can avoid having to build rustc from source by setting download-rustc = true and using --stage 2.) |
I did and it worked, which is why I was confused. Well, let's wait for 6 weeks then! |
@GuillaumeGomez it's been 6 weeks :) |
1edc757
to
f57629b
Compare
Let's see! :D |
This comment has been minimized.
This comment has been minimized.
library/core/src/char/convert.rs
Outdated
@@ -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. |
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.
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.
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.
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?
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, it's because you used a fragment link instead of an intra-doc link.
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.
Yes, which is invalid too. I'll update the current code but even the fixed version is broken for the moment.
f57629b
to
bb1ff02
Compare
This comment has been minimized.
This comment has been minimized.
Let's give it another try! |
bb1ff02
to
5b5649f
Compare
Seems like the CI passed this time. \o/ |
Forgot to r+ it... @bors: r=jyn514,camelid |
📌 Commit 5b5649f has been approved by |
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
No description provided.