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 :) |
jyn514
left a comment
There was a problem hiding this comment.
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
|
Hmm, why is this happening? |
|
|
89949c4 to
99704e7
Compare
jyn514
left a comment
There was a problem hiding this comment.
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.
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.
Let's make that a follow-up PR, this one's been through enough 😆
There was a problem hiding this comment.
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.
|
@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