Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macros: persistent scopes #37036

Merged
merged 9 commits into from
Oct 13, 2016
Merged

Conversation

jseyfried
Copy link
Contributor

@jseyfried jseyfried commented Oct 8, 2016

Groundwork for macro modularization (cc #35896).
r? @nrc

@jseyfried jseyfried force-pushed the persistent_macro_scopes branch from 067d2ed to 210b74a Compare October 8, 2016 04:29
@jseyfried jseyfried force-pushed the persistent_macro_scopes branch from 210b74a to 53fd3b0 Compare October 10, 2016 09:35
MacroRules(ast::Name, Rc<SyntaxExtension>, Span),
MacroUse(LegacyImports),
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you document these data structures please? In particular, what legacy means, why they need different semantics, and how these structures cause those semantics to happen.

@nrc
Copy link
Member

nrc commented Oct 11, 2016

Do we need some tests for the shadowing behaviour?

r=me with the requested comments and possibly tests

@bors bors merged commit 6808b0a into rust-lang:master Oct 13, 2016
@jseyfried jseyfried deleted the persistent_macro_scopes branch October 16, 2016 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants