rust/compiler/rustc_parse
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
..
src Only eat semicolons for statements that need them 2020-11-26 17:08:35 -05:00
Cargo.toml mv compiler to compiler/ 2020-08-30 18:45:07 +03:00