-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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 #17637
Labels
A-syntaxext
Area: Syntax extensions
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Comments
On it :) |
IMO this is the wrong way to go about doing things, a macro that can expand to different nodes depending on context would need to produce all of the possible expansions ahead of time. |
@eddyb: No, you can still implement |
gamazeps
added a commit
to gamazeps/rust
that referenced
this issue
Nov 9, 2014
kmcallister
added a commit
to kmcallister/rust
that referenced
this issue
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 issue
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
lnicola
pushed a commit
to lnicola/rust
that referenced
this issue
Jul 28, 2024
internal: remove rust-analyzer.openFAQ Removed no longer functional `rust-analyzer.openFAQ` command created in rust-lang#17508
RalfJung
pushed a commit
to RalfJung/rust
that referenced
this issue
Aug 1, 2024
internal: remove rust-analyzer.openFAQ Removed no longer functional `rust-analyzer.openFAQ` command created in rust-lang#17508
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-syntaxext
Area: Syntax extensions
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
There should be a single type implementing
MacResult
withOption
fields for all the typesMacResult
can return, and aDefault
impl that fills inNone
.The text was updated successfully, but these errors were encountered: