-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
whitelist every target feature for rustdoc #49225
whitelist every target feature for rustdoc #49225
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
Per @alexcrichton's request, i've pushed an update to the stdsimd module that includes rust-lang/stdarch#367, so we can verify that this fix works. I had problems getting it all the way to master, so it only includes the commits from that PR, not anything after it. |
@bors: r+ |
📌 Commit 2ba41e9 has been approved by |
🌲 The tree is currently closed for pull requests below priority 30, this pull request will be tested once the tree is reopened |
…l-the-time, r=alexcrichton whitelist every target feature for rustdoc When rust-lang/stdarch#367 was attempted to be upstreamed, it failed to document on non-x86 targets because it made every intrinsic visible, even the ones on foreign arches. This change makes it so that whenever rustdoc asks for the target feature whitelist, it gets a list of every feature known to every arch in `rustc_trans/llvm_util.rs`. Before pushing, i temporarily updated the `stdsimd` submodule to include the `doc(cfg)` change, generated documentation for `aarch64-unknown-linux-gnu`, and it completed without a problem. The generated `core::arch` docs contained complete submodules for all main arches.
When rust-lang/stdarch#367 was attempted to be upstreamed, it failed to document on non-x86 targets because it made every intrinsic visible, even the ones on foreign arches. This change makes it so that whenever rustdoc asks for the target feature whitelist, it gets a list of every feature known to every arch in
rustc_trans/llvm_util.rs
.Before pushing, i temporarily updated the
stdsimd
submodule to include thedoc(cfg)
change, generated documentation foraarch64-unknown-linux-gnu
, and it completed without a problem. The generatedcore::arch
docs contained complete submodules for all main arches.