]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #88729 - estebank:struct-literal-using-parens, r=oli-obk
authorManish Goregaokar <manishsmail@gmail.com>
Thu, 16 Sep 2021 17:57:18 +0000 (10:57 -0700)
committerGitHub <noreply@github.com>
Thu, 16 Sep 2021 17:57:18 +0000 (10:57 -0700)
commit2c7d48b9003d7f6f3babd9fa0b3fc1ba94df5ec1
treee838c281ebba42a323b728290d159cf9f63dd400
parent0ad800c417e7d4ed7d172c02666cb1da6ba62823
parentffc623ab93340f0c13fea3d518a00f6e0e49a7ec
Rollup merge of #88729 - estebank:struct-literal-using-parens, r=oli-obk

Recover from `Foo(a: 1, b: 2)`

Detect likely `struct` literal using parentheses as delimiters and emit
targeted suggestion instead of type ascription parse error.

Fix #61326.
compiler/rustc_parse/src/parser/expr.rs