-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve recovery on malformed format call #76160
Conversation
c49909b
to
cfe7a90
Compare
cfe7a90
to
e982ae5
Compare
e982ae5
to
1f1f206
Compare
@bors r+ |
📌 Commit 1f1f206db2b8b3c730c6800148a4f121436a06ef has been approved by |
⌛ Testing commit 1f1f206db2b8b3c730c6800148a4f121436a06ef with merge e8f5f5f2644fecb829b1e99362862303d2bd1847... |
This comment has been minimized.
This comment has been minimized.
Looks like one of UI tests wasn't updated. |
If a comma in a format call is replaced with a similar token, then we emit an error and continue parsing, instead of stopping at this point.
1f1f206
to
3524c3e
Compare
This has been fixed in my last force-push. |
@bors r+ |
📌 Commit 3524c3e has been approved by |
☀️ Test successful - checks-actions, checks-azure |
Update ui stderr with improved rustc output Related rust pull request: rust-lang/rust#76160 changelog: none
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
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