about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-04-16 05:00:14 +0000
committerbors <bors@rust-lang.org>2018-04-16 05:00:14 +0000
commit3e70dfd65542a09db3a5ae31e6334a0f7cc20035 (patch)
treee60d0c86ffa04becf1b98c0abc4973ce1af2231c /src/rustllvm/RustWrapper.cpp
parent748c549185651a886de46110d6d9b616f3c09fef (diff)
parenta5456bdd87d77deff6002be7632e6e2f307b4cfa (diff)
downloadrust-3e70dfd65542a09db3a5ae31e6334a0f7cc20035.tar.gz
rust-3e70dfd65542a09db3a5ae31e6334a0f7cc20035.zip
Auto merge of #49956 - QuietMisdreavus:rustdoc-codegen, r=GuillaumeGomez
rustdoc: port the -C option from rustc

Blocked on https://github.com/rust-lang/rust/pull/49864. The included test won't work without those changes, so this PR includes those commits as well.

When documenting items that require certain target features, it helps to be able to force those target features into existence. Rather than include a flag just to parse those features, i instead decided to port the `-C` flag from rustc in its entirety. It takes the same parameters, because it runs through the same parsing function. This has the added benefit of being able to control the codegen of doctests as well.

One concern i have with the flag is that i set it to stable here. My rationale is that it is a direct port of functionality on rustc that is currently stable, used only in mechanisms that it is originally used for. If needed, i can set it back to be unstable.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions