6323d9a45b
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 |
||
---|---|---|
.. | ||
analyze_filemap.rs | ||
Cargo.toml | ||
edition.rs | ||
hygiene.rs | ||
lib.rs | ||
span_encoding.rs | ||
symbol.rs |