rust/src/librustc_trans
kennytm 3e95c71c18
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.
2018-03-22 22:43:50 +08:00
..
2018-03-14 12:44:51 +08:00
2018-03-14 12:44:51 +08:00
2018-01-14 08:56:44 +02:00
2018-01-14 08:56:44 +02:00
2018-01-14 08:56:44 +02:00
2018-01-14 08:56:44 +02:00
2018-01-14 08:56:44 +02:00
2018-01-14 08:56:44 +02:00
2018-01-14 08:56:44 +02:00
2018-03-06 12:37:28 -08:00
2018-03-08 08:34:05 +01:00
2018-01-14 08:56:44 +02:00
2018-03-20 02:27:40 +03:00
2018-01-14 08:56:44 +02:00
2017-10-07 08:17:52 -07:00
2018-03-08 08:34:05 +01:00
2018-01-14 08:56:44 +02:00

The trans crate contains the code to convert from MIR into LLVM IR, and then from LLVM IR into machine code. In general it contains code that runs towards the end of the compilation process.

For more information about how trans works, see the rustc guide.