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

Support for attributes in function parameters #1397

Closed
c410-f3r opened this issue Jun 12, 2019 · 0 comments · Fixed by #1661
Closed

Support for attributes in function parameters #1397

c410-f3r opened this issue Jun 12, 2019 · 0 comments · Fixed by #1661

Comments

@c410-f3r
Copy link
Contributor

#60669 has been merged and I guess the AST needs to be modified to support it.

bors bot added a commit that referenced this issue Aug 8, 2019
1661: Parse function parameters attributes r=matklad a=eupn

Fixes #1397. The [RFC-2565](https://github.com/rust-lang/rfcs/blob/master/text/2565-formal-function-parameter-attributes.md) specifies `#[attributes]` to function parameters:

```rust
fn foo(#[attr] a, #[unused] b, #[must_use] ...) {
    // ...
}
```

This PR adds those attributes into grammar and to the parser, extending corresponding inline tests.

Co-authored-by: Evgenii P <[email protected]>
@bors bors bot closed this as completed in #1661 Aug 8, 2019
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 a pull request may close this issue.

1 participant