about summary refs log tree commit diff
path: root/src/test/ui/suggestions/struct-initializer-comma.rs
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-15/+0
2020-07-02Audit uses of `span_suggestion_short`Yuki Okushi-4/+6
2020-02-14Suggest a comma if a struct initializer field fails to parseAaron Hill-0/+13
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.