-
Notifications
You must be signed in to change notification settings - Fork 288
fix broken intra doc links #1767
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
Merged
Amanieu
merged 2 commits into
rust-lang:master
from
bend-n:rustdoc᠄᠄broken_intra_doc_links
Apr 11, 2025
The head ref may contain hidden characters: "rustdoc\u1804\u1804broken_intra_doc_links"
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -264,8 +264,8 @@ pub fn _mm512_setzero_ph() -> __m512h { | |
|
||
/// Return vector of type `__m128h` with indetermination elements. | ||
/// Despite using the word "undefined" (following Intel's naming scheme), this non-deterministically | ||
/// picks some valid value and is not equivalent to [`mem::MaybeUninit`]. | ||
/// In practice, this is typically equivalent to [`mem::zeroed`]. | ||
/// picks some valid value and is not equivalent to [`mem::MaybeUninit`](crate::mem::MaybeUninit). | ||
/// In practice, this is typically equivalent to [`mem::zeroed`](crate::mem::zeroed). | ||
/// | ||
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_undefined_ph) | ||
#[inline] | ||
|
@@ -277,8 +277,8 @@ pub fn _mm_undefined_ph() -> __m128h { | |
|
||
/// Return vector of type `__m256h` with indetermination elements. | ||
/// Despite using the word "undefined" (following Intel's naming scheme), this non-deterministically | ||
/// picks some valid value and is not equivalent to [`mem::MaybeUninit`]. | ||
/// In practice, this is typically equivalent to [`mem::zeroed`]. | ||
/// picks some valid value and is not equivalent to [`mem::MaybeUninit`](crate::mem::MaybeUninit). | ||
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. You seem to have added too many |
||
/// In practice, this is typically equivalent to [`mem::zeroed`](crate::mem::zeroed). | ||
/// | ||
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm256_undefined_ph) | ||
#[inline] | ||
|
@@ -290,8 +290,8 @@ pub fn _mm256_undefined_ph() -> __m256h { | |
|
||
/// Return vector of type `__m512h` with indetermination elements. | ||
/// Despite using the word "undefined" (following Intel's naming scheme), this non-deterministically | ||
/// picks some valid value and is not equivalent to [`mem::MaybeUninit`]. | ||
/// In practice, this is typically equivalent to [`mem::zeroed`]. | ||
/// picks some valid value and is not equivalent to [`mem::MaybeUninit`](crate::mem::MaybeUninit). | ||
/// In practice, this is typically equivalent to [`mem::zeroed`](crate::mem::zeroed). | ||
/// | ||
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm512_undefined_ph) | ||
#[inline] | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Since
core_arch
is directly included incore
, I don't think this will work. Wouldn't the correct link becrate::mem::MaybeUninit
?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.
im not sure that works... i guess the safest way to do it is to directly link to https://doc.rust-lang.org/std/mem/union.MaybeUninit.html ?
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.
Have you checked that using
core::mem::MaybeUninit
actually builds correctly in rust-lang/rust and passes tests? If so then it's probably fine.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.
i dont actually know as i cant figure out how to reproduce the CI failure locally.
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.
You can probably repro it locally by running
./x doc
. This will build the docs, and should repro the failure (if you have x86 system, then it should definitely work, otherwise you might need to add and specify a x86 target, as these doc problems are in x86)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.
yeah, i thought as much, but it wasnt reproducing the failure
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.
weird! it repros in my x86 machine. But anyway, I tried with
crate::mem
, and it worked. The rustc repo always usescrate
forcore
, because that enables use of the latest features (while compiling rustc,core
is the previous stage compiler)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.
ill take your word for it