mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 02:33:55 +00:00
87608904f6
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 <eupn@protonmail.com> |
||
---|---|---|
.. | ||
lexer | ||
parser | ||
reparse/fuzz-failures |