]> git.lizzy.rs Git - rust.git/commit
Move configuration 1 phase before crate metadata collection
authorKevin Ballard <kevin@sb.org>
Thu, 14 May 2015 07:54:05 +0000 (00:54 -0700)
committerKevin Ballard <kevin@sb.org>
Thu, 14 May 2015 17:35:35 +0000 (10:35 -0700)
commit90b952954bf7e765924f70a8892334b6bb7de93b
treefac99302c259441fc506d91bd721ed20400f6fcc
parent3ca008dcf12283247122f25928630f2a484ff768
Move configuration 1 phase before crate metadata collection

Stripping unconfigured items prior to collecting crate metadata means we
can say things like `#![cfg_attr(foo, crate_type="lib")]`.

Fixes #25347.
src/librustc_driver/driver.rs
src/test/auxiliary/crate-attributes-using-cfg_attr.rs [new file with mode: 0644]
src/test/run-pass/crate-attributes-using-cfg_attr.rs [new file with mode: 0644]