You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It fails with The attributefoobaris currently unknown to the the compiler and may have meaning added to it in the future, because of the problem mentioned above.
The text was updated successfully, but these errors were encountered:
fhahn
added a commit
to fhahn/rust
that referenced
this issue
Apr 14, 2015
closes#24434
This PR changes executes `syntax::config::strip_unconfigured_items` before `syntax::feature_gate::check_crate_macros(sess.codemap()`. As far as I know, `strip_unconfigured_items` should be independent of `check_crate_macros`.
At the moment,
feature_gate::check_crate_macros
is executed beforestrip_unconfigured_items
which leads things like#![cfg_attr(stage0, feature(custom_attribute))]
in https://github.com/rust-lang/rust/blob/master/src/libcore/lib.rs#L50 beeing ignored (#![feature(custom_attribute)]
is again defined in the same file).The following test illustrates the problem
It fails with
The attribute
foobaris currently unknown to the the compiler and may have meaning added to it in the future
, because of the problem mentioned above.The text was updated successfully, but these errors were encountered: