-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Move to intra-doc links in library/std/src/path.rs #75293
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
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
This would be fixed by #75176 if I could get it working. |
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.
Looks great ❤️ Thanks so much!
@@ -1812,7 +1756,7 @@ impl Path { | |||
/// Note that validation is performed because non-UTF-8 strings are | |||
/// perfectly valid for some OS. | |||
/// | |||
/// [`&str`]: ../primitive.str.html | |||
/// [`&str`]: str |
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.
#63351 😢
/// [`Cow<str>`]: ../borrow/enum.Cow.html | ||
/// [U+FFFD]: ../char/constant.REPLACEMENT_CHARACTER.html | ||
/// [`Cow<str>`]: Cow | ||
/// [U+FFFD]: super::char::REPLACEMENT_CHARACTER |
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.
nit: I think this would be more clear as
/// [U+FFFD]: super::char::REPLACEMENT_CHARACTER | |
/// [U+FFFD]: crate::char::REPLACEMENT_CHARACTER |
@@ -1832,8 +1776,8 @@ impl Path { | |||
/// Any non-Unicode sequences are replaced with | |||
/// [`U+FFFD REPLACEMENT CHARACTER`][U+FFFD]. | |||
/// | |||
/// [`Cow<str>`]: ../borrow/enum.Cow.html | |||
/// [U+FFFD]: ../char/constant.REPLACEMENT_CHARACTER.html | |||
/// [`Cow<str>`]: Cow |
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.
LGTM at a glance. @jyn514 is there a reason why you didn't r+ yet? |
I was waiting to see if @poliorcetics wanted to address the nit. But it can always be fixed in a follow-up PR. @bors r+ rollup |
📌 Commit 6d77e40 has been approved by |
Ah sorry, I didn't have time yesterday and forgot all about it till I got your ping today. I plan to continue working on the original issue, if I haven't revisited it once this is merged remind me, I'll do it |
☀️ Test successful - checks-actions, checks-azure |
Helps with #75080.
@rustbot modify labels: T-doc, A-intra-doc-links, T-rustdoc
Known issue: The following links are broken (they are inside trait impls, undocumented in this file, inheriting from the original doc):
Hasher
]Self
] (referencing../primitive.slice.html
)Ordering
]