Skip to content

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
Contributor

bors commented Jul 24, 2022

📌 Commit d60d5e8 has been approved by Jarcho

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Jul 24, 2022

⌛ Testing commit d60d5e8 with merge 20e4204...

@bors
Copy link
Contributor

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