Use intra-doc links in mem::manually_drop & mem::maybe_uninit#75214
Use intra-doc links in mem::manually_drop & mem::maybe_uninit#75214bors merged 1 commit intorust-lang:masterfrom
mem::manually_drop & mem::maybe_uninit#75214Conversation
|
r? @cramertj (rust_highfive has picked a reviewer for you, use r? to override) |
jyn514
left a comment
There was a problem hiding this comment.
Looks good once links are fixed and CI is passing :)
There was a problem hiding this comment.
Rustdoc will not resolve this <T>: #62834. But also I think it was meant to link to mem::zeroed, not MaybeUnint::zeroed, so you can leave it out altogether and it will still be resolved.
| /// [`mem::zeroed`]: MaybeUninit::<T>::zeroed | |
| /// [`MaybeUninit<T>`]: MaybeUninit |
There was a problem hiding this comment.
Thank you for your suggestion.
/// [MaybeUninit]: MaybeUninit shows unresolved link error...
There was a problem hiding this comment.
I fixed it with [MaybeUninit]: crate::mem::MaybeUninit
library/core/src/mem/maybe_uninit.rs
Outdated
There was a problem hiding this comment.
This is in core and Vec is in alloc. So this link will not resolve: #74481.
| /// [`Vec<T>`]: std::vec::Vec<T> | |
| /// [`Vec<T>`]: ../../std/vec/struct.Vec.html |
There was a problem hiding this comment.
Thanks...I was misunderstanding. I will fix it and squash the commit
8276d39 to
288e9ba
Compare
There was a problem hiding this comment.
| /// [pinned]: ../pin/index.html | |
| /// [pinned]: crate::pin |
There was a problem hiding this comment.
Is ptr in scope in this module? If so this is fine, but otherwise it needs to be crate::ptr or super::ptr.
There was a problem hiding this comment.
I thought that ptr was in scope since it doesn't give me results in unresolved link error... but anyway I will add crate. Thanks
288e9ba to
a296df0
Compare
Broken links |
072a905 to
d8536c3
Compare
There was a problem hiding this comment.
I don't see anything using drop or into_inner so you can remove these reference links :)
| /// [`drop`]: ManuallyDrop::drop | |
| /// [`into_inner`]: ManuallyDrop::into_inner |
There was a problem hiding this comment.
Same here, the links don't seem to be used.
| /// [`into_inner`]: ManuallyDrop::into_inner | |
| /// [`drop_in_place`]: crate::ptr::drop_in_place |
There was a problem hiding this comment.
Are you sure this didn't mean to link to crate::mem::zeroed?
| /// [`mem::zeroed`]: crate::mem::MaybeUninit::zeroed | |
| /// [`mem::zeroed`]: crate::mem::zeroed |
d8536c3 to
61866bc
Compare
|
@bors r+ rollup |
|
📌 Commit 61866bc has been approved by |
Rollup of 17 pull requests Successful merges: - rust-lang#73943 (Document the unsafe keyword) - rust-lang#74062 (deny(unsafe_op_in_unsafe_fn) in libstd/ffi/c_str.rs) - rust-lang#74185 (Remove liballoc unneeded explicit link) - rust-lang#74192 (Improve documentation on process::Child.std* fields) - rust-lang#74409 (Change Debug impl of SocketAddr and IpAddr to match their Display output) - rust-lang#75195 (BTreeMap: purge innocent use of into_kv_mut) - rust-lang#75214 (Use intra-doc links in `mem::manually_drop` & `mem::maybe_uninit`) - rust-lang#75432 (Switch to intra-doc links in `std::process`) - rust-lang#75482 (Clean up E0752 explanation) - rust-lang#75501 (Move to intra doc links in std::ffi) - rust-lang#75509 (Tweak suggestion for `this` -> `self`) - rust-lang#75511 (Do not emit E0228 when it is implied by E0106) - rust-lang#75515 (Bump std's libc version to 0.2.74) - rust-lang#75517 (Promotion and const interning comments) - rust-lang#75519 (BTreeMap: refactor splitpoint and move testing over to unit test) - rust-lang#75530 (Switch to intra-doc links in os/raw/*.md) - rust-lang#75531 (Migrate unit tests of btree collections to their native breeding ground) Failed merges: r? @ghost
This is partial fixes for #75080.