-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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::ptr
#76497
Conversation
The only link that I did not change is a link to a function on the `pointer` primitive because intra-doc links for the `pointer` primitive don't work yet (see rust-lang#63351).
(rust_highfive has picked a reviewer for you, use r? to override) |
error: `write` is both a function and a macro
--> library/core/src/ptr/mod.rs:132:13
|
132 | /// again. [`write`] can be used to overwrite data without causing it to be
| ^^^^^^^ ambiguous link
|
= note: `-D broken-intra-doc-links` implied by `-D warnings`
help: to link to the function, add parentheses
|
132 | /// again. [`write()`] can be used to overwrite data without causing it to be
| ^^^^^^^^^
help: to link to the macro, add an exclamation mark
|
132 | /// again. [`write!`] can be used to overwrite data without causing it to be
| ^^^^^^^^ |
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 fixed and CI passing
I think I'll change the text to |
`write` is ambiguous because there's also a macro called `write`. Also removed unnecessary and potentially confusing link to a function in its own docs.
@bors r+ rollup |
📌 Commit d24026b has been approved by |
@bors r- |
#safety -> self#safety
@rustbot modify labels: -S-waiting-on-author +S-waiting-on-review |
@bors r+ rollup |
📌 Commit 884a1b4 has been approved by |
…r, r=jyn514 Use intra-doc links in `core::ptr` Part of rust-lang#75080. The only link that I did not change is a link to a function on the `pointer` primitive because intra-doc links for the `pointer` primitive don't work yet (see rust-lang#63351). --- @rustbot modify labels: A-intra-doc-links T-doc
Rollup of 7 pull requests Successful merges: - rust-lang#74787 (Move `rustllvm` into `compiler/rustc_llvm`) - rust-lang#76458 (Add drain_filter method to HashMap and HashSet) - rust-lang#76472 (rustbuild: don't set PYTHON_EXECUTABLE and WITH_POLLY cmake vars since they are no longer supported by llvm) - rust-lang#76497 (Use intra-doc links in `core::ptr`) - rust-lang#76500 (Add -Zgraphviz_dark_mode and monospace font fix) - rust-lang#76543 (Document btree's unwrap_unchecked) - rust-lang#76556 (Revert rust-lang#76285) Failed merges: r? `@ghost`
@rustbot modify labels: merged-by-bors |
Error: Label merged-by-bors can only be set by Rust team members Please let |
Part of #75080.
The only link that I did not change is a link to a function on the
pointer
primitive because intra-doc links for thepointer
primitivedon't work yet (see #63351).
@rustbot modify labels: A-intra-doc-links T-doc