rust/src/librustc_parse
Aaron Hill 98757f14d0
Suggest a comma if a struct initializer field fails to parse
Currently, we emit a "try adding a comma" suggestion if a comma is
missing in a struct definition. However, we emit no such suggestion if a
comma is missing in a struct initializer.

This commit adds a "try adding a comma" suggestion when we don't find a
comma during the parsing of a struct initializer field.

The change to `src/test/ui/parser/removed-syntax-with-1.stderr` isn't
great, but I don't see a good way of avoiding it.
2020-02-14 22:28:13 -05:00
..
lexer Invert control in struct_lint_level. 2020-02-11 19:47:40 +10:00
parser Suggest a comma if a struct initializer field fails to parse 2020-02-14 22:28:13 -05:00
Cargo.toml syntax::print -> new crate rustc_ast_pretty 2020-02-01 18:59:49 +01:00
config.rs Rollup merge of #69057 - Centril:clean-expand, r=petrochenkov 2020-02-13 21:28:05 +01:00
lib.rs Remove the Cow from Directory. 2020-02-06 16:42:58 +11:00
validate_attr.rs Run RustFmt 2020-02-11 19:49:01 +10:00