-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Inline the core::arch
documentation into std
#82861
Conversation
This commit removes the `#[doc(no_inline)]`-attribute from the `pub use` statement of the `core::arch`-module. This has the effect, that the module is not listed under the re-exported section in the documentation (it is the only item in a re-exports-section in the `std`), but as a normal module. This also removes the only mention of the `core`-crate in the `std` crate, which is desirable, as only a subset of Rust users know `core` and its relationship with the `std`.
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Mark-Simulacrum (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. |
The job Click to see the possible cause of the failure (guessed by this bot)
|
Hm, I'm unsure about this test failure. Maybe this is the cause for the re-export in the first place... |
So this won't work without substantial changes to rustdoc or how core is compiled. |
If you want to add a comment saying why |
I could not re-open this PR, so I opened a new one for the comment: #82870. |
Thanks. Sorry, I didn't realize github doesn't let you reopen your own PR. |
Add note about the `#[doc(no-inline)]` usage This is required to correctly build the documentation (including all submodules, that are only available in certain targets). See the linked issue and rust-lang#82861 for reference.
This PR removes the
#[doc(no_inline)]
-attribute from thepub use
statement of thecore::arch
-module. This has the effect, that the module is not listed under the re-exported section in the documentation (it is the only item in a re-exports-section in thestd
), but as a normal module.This also removes the only mention of the
core
-crate in thestd
crate, which is desirable, as only a subset of Rust users knowcore
and its relationship with thestd
.The git history did not reveal, why this was added in the first place. If there is a reason, I can close this PR 😉