Uh oh!
There was an error while loading. Please reload this page.
Extended expand.rs to support alternate expansion behaviours (eg. stepwise expansion) - #34811
Conversation
nrc
commented
Jul 14, 2016
r? @nrc |
There was a problem hiding this comment.
Could you explain precisely when the closure is called.
DanielJCampbell
commented
Jul 15, 2016
Updated with the suggested changes - definitely looks tidier with the macros gone. |
nrc
commented
Jul 15, 2016
@bors: r+ |
bors
commented
Jul 15, 2016
📌 Commit 866da14 has been approved by |
bors
commented
Jul 15, 2016
⌛ Testing commit 866da14 with merge 68303be... |
alexcrichton
commented
Jul 15, 2016
@bors: retry force clean
|
@DanielJCampbell I ask because I'm not sure how this will interact with macro modularization, which we're planning on prototyping in the next couple of weeks. |
DanielJCampbell
commented
Jul 16, 2016
@jseyfried, @nrc |
nrc
commented
Jul 16, 2016
@bors: r- |
nrc
commented
Jul 16, 2016
@danc: I was discussing with @jseyfried on irc. He suggested a simpler approach would be to add a Separately, there seems to be a limitation with either approach which is that after the first round of expansion, the expander will no longer be able to name macros which are in any module other than the crate root. This is because of the way the expander tracks modularisation of modules. I think we just live with that. It should fix itself once we re-jig macro name resolution. We can talk more on irc on Monday. |
bors
commented
Jul 18, 2016
☔ The latest upstream changes (presumably #34860) made this pull request unmergeable. Please resolve the merge conflicts. |
arielb1
commented
Jul 24, 2016
@bors r-`` |
arielb1
commented
Jul 24, 2016
@bors r=nrc |
bors
commented
Jul 24, 2016
📌 Commit 866da14 has been approved by |
arielb1
commented
Jul 24, 2016
@bors r- |
bors
commented
Jul 24, 2016
💥 Test timed out |
alexcrichton
commented
Jul 25, 2016
Unfortunately this now looks like it has some rebase conflicts, @DanielJCampbell could you rebase so we can re-r+? |
There was a problem hiding this comment.
nit: these arguments can be on one line.
DanielJCampbell
commented
Aug 7, 2016
Fixed nits |
There was a problem hiding this comment.
One last thing -- user-defined extensions should be inserted before calling expander.load_macros(&items) so that macros imported from extern crates continue to shadow user-defined extensions (#[plugin]s). Otherwise, we might break code for no good reason.
There was a problem hiding this comment.
Ok, I'll also add a comment to that effect, since that seems worth a warning.
jseyfried
commented
Aug 7, 2016
@DanielJCampbell looks good! Could you squash the two commits? @nrc r=me unless you have other comments. |
nrc
commented
Aug 8, 2016
lgtm |
DanielJCampbell
commented
Aug 8, 2016
Squashed the commits together. |
jseyfried
commented
Aug 8, 2016
@bors r+ |
bors
commented
Aug 8, 2016
📌 Commit 2fefe00 has been approved by |
bors
commented
Aug 8, 2016
Extended expand.rs to support alternate expansion behaviours (eg. stepwise expansion) r? nrc
bors
commented
Aug 8, 2016
💔 Test failed - auto-win-msvc-64-opt-rustbuild |
DanielJCampbell
commented
Aug 9, 2016
Looks like I missed the tests, I'll fix that up shortly. |
Added single_step & keep_macs flags and functionality to expander
jseyfried
commented
Aug 12, 2016
@bors r+ |
bors
commented
Aug 12, 2016
📌 Commit 61c7569 has been approved by |
bors
commented
Aug 12, 2016
Extended expand.rs to support alternate expansion behaviours (eg. stepwise expansion) r? nrc
r? nrc