]> git.lizzy.rs Git - rust.git/commit
Run feature-gating on the final AST passed to the compiler.
authorHuon Wilson <dbau.pp+github@gmail.com>
Wed, 4 Mar 2015 07:05:38 +0000 (18:05 +1100)
committerHuon Wilson <dbau.pp+github@gmail.com>
Thu, 5 Mar 2015 13:18:29 +0000 (00:18 +1100)
commitb5c6ab20b7d1f4d6b0cc31c2987b2e0f8ea43e0c
tree977a0b867f0a2f095919b455e720a676535542ad
parent10426f69dac38186c7bb8946743023729d65e1e6
Run feature-gating on the final AST passed to the compiler.

This ensures we catch everything; previously, an unknown attribute
inserted by #[cfg_attr(...)] in a macro expansion would not be detected.
src/librustc_driver/driver.rs
src/libsyntax/feature_gate.rs
src/test/compile-fail/cfg-attr-unknown-attribute-macro-expansion.rs [new file with mode: 0644]