about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-07-28 23:10:10 +0000
committerbors <bors@rust-lang.org>2018-07-28 23:10:10 +0000
commit6323d9a45bdf0ac2a9319a6a558537e0a7e6abd1 (patch)
treea5564f46570f8ecb53639467095b4ff2a92b6688 /src/rustllvm/RustWrapper.cpp
parentdab71516f1f4f6a63e32dffeb2625a12e5113485 (diff)
parent71276c6abc5b7e0889db1f9e69e02eb5d2596f39 (diff)
downloadrust-6323d9a45bdf0ac2a9319a6a558537e0a7e6abd1.tar.gz
rust-6323d9a45bdf0ac2a9319a6a558537e0a7e6abd1.zip
Auto merge of #52355 - pietroalbini:zfeature, r=eddyb
Add the -Zcrate-attr=foo unstable rustc option

This PR adds a new unstable option to `rustc`: `-Zcrate-attr=foo`. The option can be used to inject crate-level attributes from the CLI, and it's meant to be used by tools like Crater that needs to add their own attributes to a crate without changing the source code.

The exact reason I need this is to implement "edition runs" in Crater: we need to add the preview feature flag to every crate, and editing the crates' source code on the fly might produce unexpected results, while a compiler flag is more reliable.

cc https://github.com/rust-lang-nursery/crater/issues/282 @Mark-Simulacrum
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions