]> git.lizzy.rs Git - rust.git/commit
driver: perform stripping before and after macro expansion.
authorHuon Wilson <dbau.pp+github@gmail.com>
Sat, 22 Jun 2013 03:20:00 +0000 (13:20 +1000)
committerHuon Wilson <dbau.pp+github@gmail.com>
Wed, 26 Jun 2013 13:02:14 +0000 (23:02 +1000)
commit73e3dbf9c082659d9f7aa9281ef4af4080ed019d
treeaa01696daa8da3860dc58f80f7f3917ba52df1bf
parent4ec05e02fa5f64aaef922948ce00d25f42e0478d
driver: perform stripping before and after macro expansion.

This allows macros to both be conditionally defined, and expand
to items with #[cfg]'s.
src/librustc/driver/driver.rs
src/test/run-pass/cfg-macros-foo.rs [new file with mode: 0644]
src/test/run-pass/cfg-macros-notfoo.rs [new file with mode: 0644]