Skip to content

Tweaks to format string diagnostics #57140

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

Merged
merged 2 commits into from
Dec 29, 2018
Merged

Tweaks to format string diagnostics #57140

merged 2 commits into from
Dec 29, 2018

Conversation

estebank
Copy link
Contributor

Add label spans and fix incorrect spans.

Fix #55155, fix #55350.

When a format string has escaped whitespace characters format
arguments were shifted by one per each escaped character. Account
for these escaped characters when synthesizing the spans.

Fix rust-lang#55155.
@rust-highfive
Copy link
Contributor

r? @nikomatsakis

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 27, 2018
@varkor
Copy link
Member

varkor commented Dec 27, 2018

@bors r+

@bors
Copy link
Collaborator

bors commented Dec 27, 2018

📌 Commit 5e952e3 has been approved by varkor

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Dec 27, 2018
@estebank
Copy link
Contributor Author

@bors rollup

@kennytm
Copy link
Member

kennytm commented Dec 29, 2018

@bors rollup-

Please don't rollup PRs that change diagnostics, because it may affect UI tests of unrelated PRs in the same rollup.

@bors
Copy link
Collaborator

bors commented Dec 29, 2018

⌛ Testing commit 5e952e3 with merge 35a64f8...

bors added a commit that referenced this pull request Dec 29, 2018
Tweaks to format string diagnostics

Add label spans and fix incorrect spans.

Fix #55155, fix #55350.
@bors
Copy link
Collaborator

bors commented Dec 29, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: varkor
Pushing 35a64f8 to master...

@bors bors merged commit 5e952e3 into rust-lang:master Dec 29, 2018
@rust-highfive
Copy link
Contributor

📣 Toolstate changed by #57140!

Tested on commit 35a64f8.
Direct link to PR: #57140

💔 rls on windows: test-pass → test-fail (cc @nrc @Xanewok, @rust-lang/infra).

rust-highfive added a commit to rust-lang-nursery/rust-toolstate that referenced this pull request Dec 29, 2018
Tested on commit rust-lang/rust@35a64f8.
Direct link to PR: <rust-lang/rust#57140>

💔 rls on windows: test-pass → test-fail (cc @nrc @Xanewok, @rust-lang/infra).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Swap primary/secondary spans in multiple unused formatting arguments diagnostic Incorrect underline when format strings contain escaped characters
6 participants