diff options
| author | bors <bors@rust-lang.org> | 2018-07-28 23:10:10 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-07-28 23:10:10 +0000 |
| commit | 6323d9a45bdf0ac2a9319a6a558537e0a7e6abd1 (patch) | |
| tree | a5564f46570f8ecb53639467095b4ff2a92b6688 /src/rustllvm/RustWrapper.cpp | |
| parent | dab71516f1f4f6a63e32dffeb2625a12e5113485 (diff) | |
| parent | 71276c6abc5b7e0889db1f9e69e02eb5d2596f39 (diff) | |
| download | rust-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
