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

Fix useless_format spans for format!("{foo}") #9237

Merged
merged 1 commit into from
Jul 24, 2022

Conversation

Alexendoo
Copy link
Member

Fixes #9234

changelog: [useless_format]: Fix spans for format!("{foo}")

rust-lang/rust#94030 made our workaround unneeded, but by coincidence our test still passed because Span::new() swaps hi & lo if needed. So with a single character variable like format!("{x}") it still worked

@rust-highfive
Copy link

r? @flip1995

(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 Jul 24, 2022
@Jarcho
Copy link
Contributor

Jarcho commented Jul 24, 2022

I'm surprised this took so long to get reported. Thank you.

@bors r+

@bors
Copy link
Collaborator

bors commented Jul 24, 2022

📌 Commit d60d5e8 has been approved by Jarcho

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Jul 24, 2022

⌛ Testing commit d60d5e8 with merge 20e4204...

@bors
Copy link
Collaborator

bors commented Jul 24, 2022

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: Jarcho
Pushing 20e4204 to master...

@bors bors merged commit 20e4204 into rust-lang:master Jul 24, 2022
@Alexendoo Alexendoo deleted the useless-format-spans branch July 24, 2022 18:00
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.

clippy::useless_format slices {name} to am.to_string()
5 participants