Skip to content

Fix parse tree of attribute on match arm - #986

Merged
bors[bot] merged 1 commit into
rust-lang:masterfrom
pcpthm:fix-outer-attribute-on-match-arm
Mar 17, 2019
Merged

bors[bot] merged 1 commit into
rust-lang:masterfrom
pcpthm:fix-outer-attribute-on-match-arm

Conversation

@pcpthm

@pcpthm pcpthm commented Mar 17, 2019 •

Copy link
Copy Markdown
Contributor
match () {
    #[attr]
    () => (),
}

Incorrect parse tree: MatchArmList(Attr(..), MatchArm(..)).
Fixed: MatchArmList(MatchArm(Attr(..), ...)).

@matklad

matklad commented Mar 17, 2019

Copy link
Copy Markdown
Contributor

bors r+

bors Bot added a commit that referenced this pull request Mar 17, 2019
986: Fix parse tree of attribute on match arm r=matklad a=pcpthm

```rust
match () {
    #[attr]
    () => (),
}
```
Incorrect parse tree: `MatchArmList(Attr(..), MatchArm(..))`.
Fixed: `MatchArmList(MatchArm(Attr(..), ...))`.

Co-authored-by: pcpthm <[email protected]>
@bors

bors Bot commented Mar 17, 2019

Copy link
Copy Markdown
Contributor

Build succeeded

@bors
bors Bot merged commit a67fe4e into rust-lang:master Mar 17, 2019
@pcpthm
pcpthm deleted the fix-outer-attribute-on-match-arm branch March 17, 2019 12:29
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.

2 participants