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

Generalize MacExpr / MacPat / MacItems #18814

Closed
wants to merge 1 commit into from

Conversation

gamazeps
Copy link
Contributor

@gamazeps gamazeps commented Nov 9, 2014

Might be a bit clumsy ...

Closes #17637

@gamazeps
Copy link
Contributor Author

gamazeps commented Nov 9, 2014

r? @kmcallister

@kmcallister
Copy link
Contributor

I don't have review privs on rust-lang/rust, but I added some comments.

@gamazeps
Copy link
Contributor Author

gamazeps commented Nov 9, 2014

The blak lines are not present in the other Mac* so I didn't put them in MacGeneral for consistency, but I can add the blank lines

@bstrie
Copy link
Contributor

bstrie commented Nov 20, 2014

This looks like an alternate approach to #19019 . Would anyone like to mediate between the two?

barosl added a commit to barosl/rust that referenced this pull request Dec 22, 2014
@homu homu mentioned this pull request Dec 22, 2014
barosl added a commit to barosl/rust that referenced this pull request Dec 22, 2014
@flaper87
Copy link
Contributor

@gamazeps any chance you can address the comments on this patch? Do you want one of us to take it and fix the minor issues?

also, is this still needed?

@huonw
Copy link
Member

huonw commented Jan 22, 2015

r? @kmcallister (just making sure the PR has an assignee, I think you have review privileges now?)

@kmcallister
Copy link
Contributor

This doesn't really resolve #17637; it should also remove the special-purpose types. The patch has some other problems; I'm working on a revived PR.

kmcallister added a commit to kmcallister/rust that referenced this pull request Feb 27, 2015
MacEager is a MacResult implementation for the common case where you've already
built each form of AST that you might return.

Fixes rust-lang#17637. Based on rust-lang#18814.

This is a [breaking-change] for syntax extensions:

  * MacExpr::new becomes MacEager::expr.

  * MacPat::new becomes MacEager::pat.

  * MacItems::new becomes MacEager::items. It takes a SmallVector directly,
    not an iterator.
Manishearth added a commit to Manishearth/rust that referenced this pull request Feb 28, 2015
 MacEager is a MacResult implementation for the common case where you've already built each form of AST that you might return.

Fixes rust-lang#17637. Based on rust-lang#18814.

This is a [breaking-change] for syntax extensions:

  * MacExpr::new becomes MacEager::expr.

  * MacPat::new becomes MacEager::pat.

  * MacItems::new becomes MacEager::items. It takes a SmallVector directly,
    not an iterator.

r? @sfackler
@gamazeps gamazeps deleted the issue17637 branch May 7, 2017 14:51
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.

Generalize MacExpr / MacPat / MacItems
7 participants