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 to_string_in_format_args false positive #9259

Merged
merged 2 commits into from
Aug 22, 2022
Merged

Conversation

smoelius
Copy link
Contributor

Fix #9256

changelog: none

@rust-highfive
Copy link

r? @llogiq

(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 29, 2022
Copy link
Contributor

@llogiq llogiq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one small nit pick, otherwise this looks good.

} else {
"&"
};
if n_needed_derefs == 0 && needed_ref.is_empty() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about a needs_ref instead of a needed_ref so we don't need an is_empty() here?

@smoelius
Copy link
Contributor Author

Hopefully, I understood correctly. Thanks for reviewing, @llogiq.

@bors
Copy link
Contributor

bors commented Aug 19, 2022

☔ The latest upstream changes (presumably #9349) made this pull request unmergeable. Please resolve the merge conflicts.

@llogiq
Copy link
Contributor

llogiq commented Aug 21, 2022

Yes, that's what I meant. Sorry for being absent for a while. r=me after rebase.

@smoelius
Copy link
Contributor Author

Rebase done. Thanks again, @llogiq.

@llogiq
Copy link
Contributor

llogiq commented Aug 22, 2022

Thank you!

@bors r+

@bors
Copy link
Contributor

bors commented Aug 22, 2022

📌 Commit 0bc26c8 has been approved by llogiq

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Aug 22, 2022

⌛ Testing commit 0bc26c8 with merge 5735a3b...

@bors
Copy link
Contributor

bors commented Aug 22, 2022

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: llogiq
Pushing 5735a3b to master...

@bors bors merged commit 5735a3b into rust-lang:master Aug 22, 2022
@smoelius smoelius deleted the fix-9256 branch August 22, 2022 11:02
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.

Incorrect suggested removal of to_string on slice
4 participants