-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Move to intra-doc links for task.rs and vec.rs #75672
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @LukasKalbertodt (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
r? @jyn514 |
library/alloc/src/vec.rs
Outdated
/// [`truncate`]: #method.truncate | ||
/// [`resize`]: #method.resize |
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.
These are implemented on Vec
, not on slices.
/// [`truncate`]: #method.truncate | |
/// [`resize`]: #method.resize | |
/// [`truncate`]: Vec::truncate | |
/// [`resize`]: Vec::resize |
library/alloc/src/vec.rs
Outdated
@@ -867,7 +860,7 @@ impl<T> Vec<T> { | |||
/// | |||
/// [`truncate`]: #method.truncate | |||
/// [`resize`]: #method.resize | |||
/// [`extend`]: ../../std/iter/trait.Extend.html#tymethod.extend | |||
/// [`extend`]: Extend::extend | |||
/// [`clear`]: #method.clear |
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.
/// [`clear`]: #method.clear | |
/// [`clear`]: Vec::clear |
library/alloc/src/vec.rs
Outdated
@@ -1480,7 +1471,6 @@ impl<T> Vec<T> { | |||
/// ``` | |||
/// | |||
/// [`resize`]: #method.resize |
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.
/// [`resize`]: #method.resize | |
/// [`resize`]: Vec::resize |
library/alloc/src/vec.rs
Outdated
@@ -1590,8 +1580,6 @@ impl<T: Clone> Vec<T> { | |||
/// assert_eq!(vec, [1, 2]); | |||
/// ``` | |||
/// | |||
/// [`Clone`]: ../../std/clone/trait.Clone.html | |||
/// [`Default`]: ../../std/default/trait.Default.html | |||
/// [`resize_with`]: #method.resize_with |
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.
/// [`resize_with`]: #method.resize_with | |
/// [`resize_with`]: Vec::resize_with |
library/alloc/src/vec.rs
Outdated
/// [`Default::default()`]: ../../std/default/trait.Default.html#tymethod.default | ||
/// [`Default`]: ../../std/default/trait.Default.html | ||
/// [`Clone`]: ../../std/clone/trait.Clone.html | ||
/// [`Default::default()`]: Default::default |
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.
The parentheses count as a disambiguator, they'll still link :)
/// [`Default::default()`]: Default::default |
library/alloc/src/vec.rs
Outdated
@@ -1655,9 +1643,7 @@ impl<T: Default> Vec<T> { | |||
/// ``` | |||
/// | |||
/// [`resize`]: #method.resize |
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.
/// [`resize`]: #method.resize | |
/// [`resize`]: Vec::resize |
@bors r+ rollup |
📌 Commit 632db79 has been approved by |
Rollup of 8 pull requests Successful merges: - rust-lang#75672 (Move to intra-doc links for task.rs and vec.rs) - rust-lang#75702 (Clean up E0759 explanation) - rust-lang#75703 (Enable stack-overflow detection on musl for non-main threads) - rust-lang#75710 (Fix bad printing of const-eval queries) - rust-lang#75716 (Upgrade Emscripten on CI to 1.39.20 ) - rust-lang#75731 (Suppress ty::Float in MIR comments of ty::Const) - rust-lang#75733 (Remove duplicated alloc vec bench push_all_move) - rust-lang#75743 (Rename rustc_lexer::TokenKind::Not to Bang) Failed merges: r? @ghost
…=thomcc docs: use intra-doc links for `Vec::get(_mut)` Now that rust-lang#63351 is fixed, there's no reason not to. CC rust-lang#75672
…=thomcc docs: use intra-doc links for `Vec::get(_mut)` Now that rust-lang#63351 is fixed, there's no reason not to. CC rust-lang#75672
Partial fix for #75080
links for [
get
], [get_mut
] skipped due to #75643link for [
copy_from_slice
] skipped due to #63351