rust/src/libsyntax
Alex Crichton 3dbd32854f rustc: Process #[cfg]/#[cfg_attr] on crates
This commit implements processing these two attributes at the crate level as
well as at the item level. When #[cfg] is applied at the crate level, then the
entire crate will be omitted if the cfg doesn't match. The #[cfg_attr] attribute
is processed as usual in that the attribute is included or not depending on
whether the cfg matches.

This was spurred on by motivations of #18585 where #[cfg_attr] annotations will
be applied at the crate-level.

cc #18585
2014-11-07 12:04:28 -08:00
..
ast_map Remove the unboxed closure |:| notation from types and trait references completely. 2014-11-06 06:48:24 -05:00
diagnostics Fallout from collection conventions 2014-11-06 12:26:08 -05:00
ext rollup merge of #18630 : nikomatsakis/purge-the-bars 2014-11-06 13:31:18 -08:00
parse Remove the unboxed closure |:| notation from types and trait references completely. 2014-11-06 06:48:24 -05:00
print Remove the unboxed closure |:| notation from types and trait references completely. 2014-11-06 06:48:24 -05:00
util Fallout from collection conventions 2014-11-06 12:26:08 -05:00
abi.rs Implement flexible target specification 2014-11-04 05:07:47 -05:00
ast_util.rs Support parenthesized paths Foo(A,B) -> C that expand to Foo<(A,B),C>. These paths also bind anonymous regions (or will, once HRTB is fully working). 2014-11-06 06:48:23 -05:00
ast.rs Remove the unboxed closure |:| notation from types and trait references completely. 2014-11-06 06:48:24 -05:00
attr.rs Continue cfg syntax transition 2014-10-12 11:40:19 -07:00
codemap.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
config.rs rustc: Process #[cfg]/#[cfg_attr] on crates 2014-11-07 12:04:28 -08:00
diagnostic.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
feature_gate.rs Remove the unboxed closure |:| notation from types and trait references completely. 2014-11-06 06:48:24 -05:00
fold.rs rustc: Process #[cfg]/#[cfg_attr] on crates 2014-11-07 12:04:28 -08:00
lib.rs Remove a large amount of deprecated functionality 2014-10-19 12:59:40 -07:00
owned_slice.rs collections: Remove all collections traits 2014-11-01 11:37:04 -07:00
ptr.rs Remove a large amount of deprecated functionality 2014-10-19 12:59:40 -07:00
show_span.rs rebasing fixes 2014-09-17 16:53:20 +12:00
std_inject.rs Support parenthesized paths Foo(A,B) -> C that expand to Foo<(A,B),C>. These paths also bind anonymous regions (or will, once HRTB is fully working). 2014-11-06 06:48:23 -05:00
test.rs rustc: Process #[cfg]/#[cfg_attr] on crates 2014-11-07 12:04:28 -08:00
visit.rs Remove the unboxed closure |:| notation from types and trait references completely. 2014-11-06 06:48:24 -05:00