]> git.lizzy.rs Git - rust.git/commit
Detect struct literal needing parentheses
authorEsteban Küber <esteban@kuber.com.ar>
Mon, 9 Jan 2023 05:29:54 +0000 (05:29 +0000)
committerEsteban Küber <esteban@kuber.com.ar>
Wed, 11 Jan 2023 16:53:21 +0000 (16:53 +0000)
commit531193853142a2564f1c667c9e8ca96c524a380b
treed6c41ab474075abbfca955b556dd9c68f9794cd4
parentb22c152958eade17a71d899b29a2d39bcc77aa48
Detect struct literal needing parentheses

Fix #82051.
compiler/rustc_error_messages/locales/en-US/parse.ftl
compiler/rustc_parse/src/errors.rs
compiler/rustc_parse/src/parser/diagnostics.rs
compiler/rustc_parse/src/parser/expr.rs
compiler/rustc_parse/src/parser/item.rs
compiler/rustc_parse/src/parser/stmt.rs
tests/ui/parser/method-call-on-struct-literal-in-if-condition.rs [new file with mode: 0644]
tests/ui/parser/method-call-on-struct-literal-in-if-condition.stderr [new file with mode: 0644]