-
Notifications
You must be signed in to change notification settings - Fork 13.9k
add missing doc links #73579
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
add missing doc links #73579
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -358,12 +358,13 @@ pub fn size_of_val<T: ?Sized>(val: &T) -> usize { | |
| /// - an (unstable) [extern type], then this function is always safe to | ||
| /// call, but may panic or otherwise return the wrong value, as the | ||
| /// extern type's layout is not known. This is the same behavior as | ||
| /// [`size_of_val`] on a reference to an extern type tail. | ||
| /// [`size_of_val`] on a reference to a type with extern type tail. | ||
| /// - otherwise, it is conservatively not allowed to call this function. | ||
| /// | ||
| /// [slice]: ../../std/primitive.slice.html | ||
| /// [trait object]: ../../book/ch17-02-trait-objects.html | ||
| /// [extern type]: ../../unstable-book/language-features/extern-types.html | ||
| /// [`size_of_val`]: ../../core/mem/fn.size_of_val.html | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this needed? https://doc.rust-lang.org/nightly/core/mem/fn.size_of_val.html already correctly links to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I meant that https://doc.rust-lang.org/nightly/core/mem/fn.size_of_val_raw.html correctly links the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh... that's weird, I just saw it with a broken link somewhere... let me see if I can find that again. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, the link is broken here: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's #65983. The intra-doc link feature isn't ready for use in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Okay, seems like my patch makes sense then as it avoids using that feature. |
||
| /// | ||
| /// # Examples | ||
| /// | ||
|
|
@@ -492,12 +493,13 @@ pub fn align_of_val<T: ?Sized>(val: &T) -> usize { | |
| /// - an (unstable) [extern type], then this function is always safe to | ||
| /// call, but may panic or otherwise return the wrong value, as the | ||
| /// extern type's layout is not known. This is the same behavior as | ||
| /// [`align_of_val`] on a reference to an extern type tail. | ||
| /// [`align_of_val`] on a reference to a type with extern type tail. | ||
RalfJung marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| /// - otherwise, it is conservatively not allowed to call this function. | ||
| /// | ||
| /// [slice]: ../../std/primitive.slice.html | ||
| /// [trait object]: ../../book/ch17-02-trait-objects.html | ||
| /// [extern type]: ../../unstable-book/language-features/extern-types.html | ||
| /// [`align_of_val`]: ../../core/mem/fn.align_of_val.html | ||
| /// | ||
| /// # Examples | ||
| /// | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.