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
I think we should fix this by removing unconfigured items after each macro expansion pass since we'll have to do this anyway to get accurate name resolution during macro expansion.
jseyfried
changed the title
Macro-expanded procedural macros can be used even if they are unconfigured
Macro-expanded macro definitions can be used even if they are unconfigured
Jun 1, 2016
For example, this compiles:
If we replaced
bar! {}
with its expansion,#[cfg(foo)] macro_rules! { baz { () => {} } }
, the example wouldn't compile.The text was updated successfully, but these errors were encountered: