-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Use intra-doc links in core::macros
#75927
Use intra-doc links in core::macros
#75927
Conversation
r? @cramertj (rust_highfive has picked a reviewer for you, use r? to override) |
NOTE: the intra-doc links in From @jyn514:
|
I decided that |
Makes sense to me :) |
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.
This uses doc(include = "panic.md")
, so it should work fine when included. I'm all for verifying that though :)
rust/library/core/src/macros/mod.rs
Line 1 in bf43421
#[doc(include = "panic.md")] |
Hmm, why is this happening?
|
|
89949c4
to
99704e7
Compare
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.
r=me with nit addressed and CI passing
Oops, my fault, sorry. |
Do I have to use a non-intra-doc link for |
Yes, |
That's what I thought. Should be all done now! |
Do you mind squashing the commits? |
Also cleaned up some things and added a few more links.
e11acd5
to
511ee05
Compare
Squashed! :) |
@bors r+ rollup Finally good to go 😆 |
📌 Commit 511ee05 has been approved by |
[ounwrap]: Option::unwrap | ||
[runwrap]: Result::unwrap |
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.
Why not just make the original version Option::unwrap
and Result::unwrap
by tweaking the text a bit?
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.
Let's make that a follow-up PR, this one's been through enough 😆
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 forgot my the last time I commented on a PR that needs a follow up PR, I wanted to go back to that but I forgot which PR is it.
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.
@pickfire clean up text when this is merged. |
…albini Rollup of 12 pull requests Successful merges: - rust-lang#75330 (Improve rendering of crate features via doc(cfg)) - rust-lang#75927 (Use intra-doc links in `core::macros`) - rust-lang#75941 (Clean up E0761 explanation) - rust-lang#75943 (Fix potential UB in align_offset doc examples) - rust-lang#75946 (Error use explicit intra-doc link and fix text) - rust-lang#75955 (Use intra-doc links in `core::future::future` and `core::num::dec2flt`) - rust-lang#75967 (Fix typo in `std::hint::black_box` docs) - rust-lang#75972 (Fix ICE due to carriage return w/ multibyte char) - rust-lang#75989 (Rename rustdoc/test -> rustdoc/doctest) - rust-lang#75996 (fix wording in release notes) - rust-lang#75998 (Add InstrProfilingPlatformFuchsia.c to profiler_builtins) - rust-lang#76000 (Adds --bless support to test/run-make-fulldeps) Failed merges: r? @ghost
Part of #75080.
Also cleaned up some things.
@rustbot modify labels: A-intra-doc-links T-doc T-rustdoc