]> git.lizzy.rs Git - rust.git/commit
Auto merge of #76160 - scileo:format-recovery, r=petrochenkov
authorbors <bors@rust-lang.org>
Wed, 2 Sep 2020 19:29:27 +0000 (19:29 +0000)
committerbors <bors@rust-lang.org>
Wed, 2 Sep 2020 19:29:27 +0000 (19:29 +0000)
commit80fc9b0ecb29050d45b17c64af004200afd3cfc2
tree3d0269d8f9ecb027bd59a942462003ed9e01e4ea
parenta167485e279be8a11c9c09d0dddaf1d7c5724f1c
parent3524c3ef4371d0bf4dd03568a004039f18c154f7
Auto merge of #76160 - scileo:format-recovery, r=petrochenkov

Improve recovery on malformed format call

The token following a format expression should be a comma. However, when it is replaced with a similar token (such as a dot), then the corresponding error is emitted, but the token is treated as a comma, and the parsing step continues.

r? @petrochenkov
compiler/rustc_parse/src/parser/mod.rs