rust/src/libsyntax_pos
bors 6323d9a45b 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
2018-07-28 23:10:10 +00:00
..
Cargo.toml Add SSE2 accelerated version of FileMap analysis. 2018-06-27 14:00:34 +02:00
analyze_filemap.rs syntax_pos: Store multibyte char size as u8 instead of u32. 2018-06-27 14:00:34 +02:00
edition.rs Remove most of `PartialEq` impls from AST and HIR structures 2018-07-14 14:56:57 +03:00
hygiene.rs Do not use desugared ident when suggesting adding a type 2018-07-18 10:02:15 -07:00
lib.rs Auto merge of #52355 - pietroalbini:zfeature, r=eddyb 2018-07-28 23:10:10 +00:00
span_encoding.rs libsyntax_pos: Tweak some visibilities 2018-07-08 16:17:36 +03:00
symbol.rs Implement existential types 2018-07-18 10:53:08 +02:00