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
..
2014-10-19 12:59:40 -07:00
2014-10-09 09:44:52 -07:00
2014-10-19 12:59:40 -07:00
2014-10-19 12:59:40 -07:00
2014-10-29 11:43:07 -04:00
2014-10-19 12:59:40 -07:00
2014-10-19 12:59:40 -07:00
2014-10-19 12:59:40 -07:00
2014-10-19 12:59:40 -07:00
2014-10-29 23:24:04 -04:00
2014-10-21 23:52:00 -04:00
2014-10-19 12:59:40 -07:00
2014-10-19 12:59:40 -07:00
2014-10-19 12:59:40 -07:00
2014-10-19 12:59:40 -07:00
2014-10-19 12:59:40 -07:00
2014-10-19 12:59:40 -07:00
2014-10-19 12:59:40 -07:00
2014-10-19 12:59:40 -07:00
2014-10-19 12:59:40 -07:00
2014-10-19 12:59:40 -07:00
2014-10-19 12:59:40 -07:00
2014-10-19 12:59:40 -07:00
2014-10-16 11:15:34 -04:00
2014-10-19 12:59:40 -07:00
2014-10-09 17:19:53 -04:00
2014-10-19 12:59:40 -07:00
2014-10-19 12:59:40 -07:00
2014-09-13 02:07:39 -07:00
2014-10-19 12:59:40 -07:00
2014-10-09 09:44:52 -07:00
2014-10-02 17:02:15 +03:00
2014-10-19 12:59:40 -07:00
2014-10-19 12:59:40 -07:00
2014-10-29 11:43:07 -04:00
2014-10-19 12:59:40 -07:00
2014-10-02 17:02:03 +03:00
2014-10-19 12:59:40 -07:00
2014-10-19 12:59:40 -07:00
2014-10-19 12:59:40 -07:00
2014-10-19 12:59:40 -07:00
2014-10-19 12:59:40 -07:00
2014-10-19 12:59:40 -07:00
2014-10-19 12:59:40 -07:00
2014-10-02 17:02:15 +03:00
2014-11-03 15:08:20 -08:00
2014-09-30 16:22:55 +02:00
2014-10-09 09:44:52 -07:00
2014-09-30 23:53:15 +03:00
2014-10-09 09:44:52 -07:00
2014-10-09 09:44:52 -07:00
2014-11-01 19:07:51 -07:00
2014-11-01 15:24:42 -07:00
2014-10-29 16:06:13 -04:00
2014-10-19 12:59:40 -07:00
2014-11-05 17:35:40 -08:00
2014-10-29 11:43:07 -04:00
2014-10-19 12:59:40 -07:00
2014-10-30 19:02:11 -07:00
2014-10-30 19:02:11 -07:00
2014-11-01 11:05:12 +13:00
2014-11-01 11:05:12 +13:00
2014-10-31 20:43:35 -07:00
2014-10-31 20:43:35 -07:00
2014-09-22 20:05:45 -07:00
2014-09-22 20:05:45 -07:00
2014-10-29 11:43:07 -04:00
2014-10-28 15:55:37 +11:00
2014-11-07 12:04:28 -08:00
2014-11-07 12:04:28 -08:00
2014-09-17 18:53:54 +12:00
2014-10-19 12:59:40 -07:00
2014-10-29 11:43:07 -04:00
2014-10-19 12:59:40 -07:00
2014-10-19 12:59:40 -07:00
2014-10-19 12:59:40 -07:00
2014-10-19 12:59:40 -07:00
2014-10-19 12:59:40 -07:00
2014-10-19 12:59:40 -07:00
2014-10-19 12:59:40 -07:00
2014-10-19 12:59:40 -07:00
2014-10-19 12:59:40 -07:00
2014-10-19 12:59:40 -07:00
2014-10-19 12:59:40 -07:00
2014-10-19 12:59:40 -07:00
2014-10-19 12:59:40 -07:00
2014-10-19 12:59:40 -07:00
2014-10-19 12:59:40 -07:00
2014-10-19 12:59:40 -07:00
2014-10-19 12:59:40 -07:00
2014-10-19 12:59:40 -07:00
2014-11-03 15:08:20 -08:00
2014-11-03 15:08:20 -08:00
2014-10-19 12:59:40 -07:00
2014-11-02 11:55:58 -08:00
2014-10-31 20:43:35 -07:00
2014-10-29 11:43:07 -04:00
2014-10-02 21:31:06 +02:00