-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Use intra-doc links in core::marker
#76261
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Use intra-doc links in core::marker
#76261
Conversation
r? @cramertj (rust_highfive has picked a reviewer for you, use r? to override) |
This whole rust/library/core/src/marker.rs Lines 339 to 340 in 2908ed6
|
@@ -764,9 +757,9 @@ unsafe impl<T: ?Sized> Freeze for &mut T {} | |||
/// | |||
/// This trait is automatically implemented for almost every type. | |||
/// | |||
/// [`mem::replace`]: ../../std/mem/fn.replace.html | |||
/// [`mem::replace`]: crate::mem::replace | |||
/// [Pin]: crate::pin::Pin |
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.
It looks like a few things were converted to intra-doc before!
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.
Thank matklad :) #75780
Yeah this is a confusing way to word it. I think it's trying to say that it owns something the compiler doesn't know about, like a file descriptor or a pointer, as to opposed to types without a custom Drop that you can destructure. |
@@ -764,9 +757,9 @@ unsafe impl<T: ?Sized> Freeze for &mut T {} | |||
/// | |||
/// This trait is automatically implemented for almost every type. | |||
/// | |||
/// [`mem::replace`]: ../../std/mem/fn.replace.html | |||
/// [`mem::replace`]: crate::mem::replace | |||
/// [Pin]: crate::pin::Pin |
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.
Thank matklad :) #75780
r=me once CI passes |
r? @jyn514 |
@bors r+ rollup |
📌 Commit 7926435 has been approved by |
Hmm, bors is sleepy. |
Rollup of 12 pull requests Successful merges: - rust-lang#75150 (Add a note for Ipv4Addr::to_ipv6_compatible) - rust-lang#76120 (Add `[T; N]::as_[mut_]slice`) - rust-lang#76142 (Make all methods of `std::net::Ipv4Addr` const) - rust-lang#76164 (Link to slice pattern in array docs) - rust-lang#76167 (Replace MinGW library hack with heuristic controlling link mode) - rust-lang#76204 (Rename and expose LoopState as ControlFlow) - rust-lang#76238 (Move to intra-doc links for library/core/src/iter/traits/iterator.rs) - rust-lang#76242 (Read: adjust a FIXME reference) - rust-lang#76243 (Fix typos in vec try_reserve(_exact) docs) - rust-lang#76245 (inliner: Avoid query cycles when optimizing generators) - rust-lang#76255 (Update books) - rust-lang#76261 (Use intra-doc links in `core::marker`) Failed merges: r? @ghost
Part of #75080.
Also cleaned up a few things.
@rustbot modify labels: A-intra-doc-links T-doc