mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
758834d3e2
When parsing a statement (e.g. inside a function body), we now consider `struct Foo {};` and `$stmt;` to each consist of two statements: `struct Foo {}` and `;`, and `$stmt` and `;`. As a result, an attribute macro invoke as `fn foo() { #[attr] struct Bar{}; }` will see `struct Bar{}` as its input. Additionally, the 'unused semicolon' lint now fires in more places. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |