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
Macro-expanded unconfigured items are gated feature checked, but ordinary unconfigured items are not. For example, the following should compile, ...
#![cfg_attr(attr, feature(rustc_attrs))]macro_rules! mac {{} => {
#[cfg(attr)]mod m {
#[rustc_error]// ... but if not(attr), this complains about the lack of the rustc_attrs featurefn f(){}}}}mac!{}
If we manually expand mac! {}, it always compiles:
#![cfg_attr(attr, feature(rustc_attrs))]#[cfg(attr)]mod m {#[rustc_error]fnf(){}}