Uh oh!
There was an error while loading. Please reload this page.
Assign def ids and build the module graph during expansion - #36601
Conversation
There was a problem hiding this comment.
macro_escape is ancient! (5bf385b)
Can be removed now.
There was a problem hiding this comment.
Ugh, I haven't noticed it's span_warn and not span_err, even the variable is named err...
nrc
commented
Sep 20, 2016
r = me, once the deps land. |
bors
commented
Sep 22, 2016
☔ The latest upstream changes (presumably #36551) made this pull request unmergeable. Please resolve the merge conflicts. |
08f131e to
105cc1eCompareThere was a problem hiding this comment.
After this PR, we load extern crates (in BuildReducedGraphVisitor) before checking for non-ascii idents (in the gated feature checking pass).
jseyfried
commented
Sep 24, 2016
@nrc I added three more commits -- r? |
1dff614 to
0594531CompareThere was a problem hiding this comment.
I was going to say it would be better to have a struct than a tuple at this point (esp with a bool with comment). However, given that this field only ever seems to have one instantiation, it might just be over-abstracted. Could it be changed to a flag with a method rather than an optional closure?
There was a problem hiding this comment.
I could refactor the closure into a user-defined trait object (e.g. Option<&'a mut MacroInvocationVisitor>, where MacroInvocationVisitor is a trait with method fn visit_invoc(id: NodeId, def_index: DefIndex, const_integer: bool)).
The invocation visiting code needs to be in resolve, so we need a trait object of some sort.
There was a problem hiding this comment.
I think a closure is as good as a trait object, but probably better to take a struct rather than a 3-tuple.
There was a problem hiding this comment.
Good point -- amended accordingly.
There was a problem hiding this comment.
Could you add a comment explaining what const_integer means please?
a21377c to
3aa46c3Comparebors
commented
Sep 27, 2016
☔ The latest upstream changes (presumably #36678) made this pull request unmergeable. Please resolve the merge conflicts. |
and expand the `__test_reexports` in the correct scope.
3aa46c3 to
dfa69beComparenrc
commented
Sep 27, 2016
@bors: r+ |
bors
commented
Sep 27, 2016
📌 Commit dfa69be has been approved by |
bors
commented
Sep 27, 2016
Assign def ids and build the module graph during expansion r? @nrc
Groundwork for macro modularization (cc #35896).
r? @nrc