Skip to content

Generalize MacExpr / MacPat / MacItems - #18814

Closed
gamazeps wants to merge 1 commit into
rust-lang:masterfrom
gamazeps:issue17637
Closed

Generalize MacExpr / MacPat / MacItems#18814
gamazeps wants to merge 1 commit into
rust-lang:masterfrom
gamazeps:issue17637

Conversation

@gamazeps

Copy link
Copy Markdown
Contributor

Might be a bit clumsy ...

Closes#17637

@gamazeps

Copy link
Copy Markdown
ContributorAuthor

r? @kmcallister

@kmcallister

Copy link
Copy Markdown
Contributor

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

@gamazeps

Copy link
Copy Markdown
ContributorAuthor

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
Copy Markdown
Contributor

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
@homuhomu mentioned this pull request Dec 22, 2014
barosl added a commit to barosl/rust that referenced this pull request Dec 22, 2014
@baroslbarosl mentioned this pull request Dec 22, 2014
@flaper87

Copy link
Copy Markdown
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
Copy Markdown
Contributor

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

@kmcallister

Copy link
Copy Markdown
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.

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.
Fixesrust-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 freeto 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

@gamazeps@kmcallister@bstrie@flaper87@huonw@nikomatsakis@emberian