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

Replace MacExpr / MacPat / MacItems with MacEager #22875

Merged
merged 1 commit into from
Feb 28, 2015

Conversation

kmcallister
Copy link
Contributor

MacEager is a MacResult implementation for the common case where you've already built each form of AST that you might return.

Fixes #17637. Based on #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

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.
@sfackler
Copy link
Member

MacEager seems like a kind of weird name, but I'm not sure of what would be better.

@sfackler
Copy link
Member

@bors: r+ f66a3f7

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
@bors bors merged commit f66a3f7 into rust-lang:master Feb 28, 2015
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
3 participants