-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Move to doc links inside std/time.rs #75371
Conversation
r? @cramertj (rust_highfive has picked a reviewer for you, use r? to override) |
❤️ these sorts of PRs make me think all the time I put in was worth it :) @bors r+ rollup |
📌 Commit bd01bf9 has been approved by |
@@ -368,7 +361,7 @@ impl Add<Duration> for Instant { | |||
/// This function may panic if the resulting point in time cannot be represented by the | |||
/// underlying data structure. See [`checked_add`] for a version without panic. | |||
/// | |||
/// [`checked_add`]: ../../std/time/struct.Instant.html#method.checked_add | |||
/// [`checked_add`]: Instant::checked_add |
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.
We could also do the same trick here.
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 is already being merged so I won't modify further but a follow up PR would probably be accepted without any problem. 😃
@@ -544,7 +527,7 @@ impl Add<Duration> for SystemTime { | |||
/// This function may panic if the resulting point in time cannot be represented by the | |||
/// underlying data structure. See [`checked_add`] for a version without panic. | |||
/// | |||
/// [`checked_add`]: ../../std/time/struct.SystemTime.html#method.checked_add | |||
/// [`checked_add`]: SystemTime::checked_add |
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.
And here, it would be clearer. Reading the code directly is way better now, also the docs will be more explicit.
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.
Same as above
Rollup of 9 pull requests Successful merges: - rust-lang#74521 (older toolchains not valid anymore) - rust-lang#74960 (Fix regionck failure when converting Index to IndexMut) - rust-lang#75234 (Update asm! documentation in unstable book) - rust-lang#75368 (Move to doc links inside the prelude) - rust-lang#75371 (Move to doc links inside std/time.rs) - rust-lang#75394 (Add a function to `TyCtxt` for computing an `Allocation` for a `static` item's initializer) - rust-lang#75395 (Switch to intra-doc links in library/std/src/os/*/fs.rs) - rust-lang#75422 (Accept more safety comments) - rust-lang#75424 (fix wrong word in documentation) Failed merges: r? @ghost
Helps with #75080.
@rustbot modify labels: T-doc, A-intra-doc-links, T-rustdoc