rust/compiler
Aaron Hill 758834d3e2
Only eat semicolons for statements that need them
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.
2020-11-26 17:08:35 -05:00
..
2020-11-20 00:00:00 +00:00
2020-11-22 13:45:14 +00:00
2020-11-25 09:45:33 -08:00
2020-11-22 13:45:14 +00:00
2020-11-25 13:15:48 -08:00
2020-11-22 20:32:36 -05:00
2020-11-21 09:06:45 +01:00
2020-11-24 20:08:54 -08:00