]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #49225 - QuietMisdreavus:all-the-features-all-the-time, r=alexcrichton
authorkennytm <kennytm@gmail.com>
Thu, 22 Mar 2018 09:51:36 +0000 (17:51 +0800)
committerkennytm <kennytm@gmail.com>
Thu, 22 Mar 2018 14:43:50 +0000 (22:43 +0800)
commit3e95c71c18208c8e4ed7cf0bece80b6cb27587bc
treef387eb8f4fb1b07cfa1ffe124cac6a7a523c3911
parent346a46e9d65b62d43eda6de2a23620a38889a198
parent2ba41e9d7943912dafe2f508c97d4083249d97a4
Rollup merge of #49225 - QuietMisdreavus:all-the-features-all-the-time, r=alexcrichton

whitelist every target feature for rustdoc

When https://github.com/rust-lang-nursery/stdsimd/pull/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.