Skip to content
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

Point at unused arguments for format string #47481

Merged
merged 2 commits into from
Jan 17, 2018
Merged

Conversation

estebank
Copy link
Contributor

Avoid overlapping spans by only pointing at the arguments that are not
being used in the argument string. Enable libsyntax to have diagnostics
with multiple primary spans by accepting Into<MultiSpan> instead of
Span.

Partially addresses #41850.

Avoid overlapping spans by only pointing at the arguments that are not
being used in the argument string. Enable libsyntax to have diagnostics
with multiple primary spans by accepting `Into<MultiSpan>` instead of
`Span`.
@rust-highfive
Copy link
Collaborator

r? @arielb1

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

@estebank estebank added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 16, 2018
@arielb1
Copy link
Contributor

arielb1 commented Jan 16, 2018

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Jan 16, 2018

📌 Commit a4660df has been approved by arielb1

@estebank
Copy link
Contributor Author

estebank commented Jan 17, 2018

Readded the previous error span as a secondary span so that we can see the formatting string when a println! spans multiple lines.

@bors r=arielb1 rollup

@bors
Copy link
Contributor

bors commented Jan 17, 2018

📌 Commit eb3da09 has been approved by arielb1

kennytm added a commit to kennytm/rust that referenced this pull request Jan 17, 2018
Point at unused arguments for format string

Avoid overlapping spans by only pointing at the arguments that are not
being used in the argument string. Enable libsyntax to have diagnostics
with multiple primary spans by accepting `Into<MultiSpan>` instead of
`Span`.

Partially addresses rust-lang#41850.
kennytm added a commit to kennytm/rust that referenced this pull request Jan 17, 2018
Point at unused arguments for format string

Avoid overlapping spans by only pointing at the arguments that are not
being used in the argument string. Enable libsyntax to have diagnostics
with multiple primary spans by accepting `Into<MultiSpan>` instead of
`Span`.

Partially addresses rust-lang#41850.
bors added a commit that referenced this pull request Jan 17, 2018
@bors bors merged commit eb3da09 into rust-lang:master Jan 17, 2018
@estebank estebank deleted the unused-args branch November 9, 2023 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants