about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-02-15 09:45:49 +0100
committerGitHub <noreply@github.com>2020-02-15 09:45:49 +0100
commite9db0613acb2dfdb6a892873d59d0626b20c6cc8 (patch)
tree72b0aff59d492542867e747604c2abee64856211 /src/libstd/sys/unix/stack_overflow.rs
parent09d6a657b1396d8ed9ce052df4a45d4ef47fa608 (diff)
parent98757f14d0242e6dcae258df8aeb7e17580702ef (diff)
downloadrust-e9db0613acb2dfdb6a892873d59d0626b20c6cc8.tar.gz
rust-e9db0613acb2dfdb6a892873d59d0626b20c6cc8.zip
Rollup merge of #69180 - Aaron1011:feature/comma-struct-init, r=petrochenkov
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.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions