Skip to content

inline format arguments #3217

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 1 commit into from
Aug 19, 2025
Merged

inline format arguments #3217

merged 1 commit into from
Aug 19, 2025

Conversation

nyurik
Copy link
Contributor

@nyurik nyurik commented Feb 27, 2025

In a few cases, removed the unneeded & - this causes a minor slowdown because compiler cannot eliminate those (yet).

@Enselic
Copy link
Collaborator

Enselic commented Jul 16, 2025

can you provide benchmarking to demonstrate the difference please? thanks!

@Enselic
Copy link
Collaborator

Enselic commented Aug 16, 2025

closing as won't fix (but let's reopen if benchmarks can demonstrate a difference)

@Enselic Enselic closed this Aug 16, 2025
@nyurik
Copy link
Contributor Author

nyurik commented Aug 16, 2025

@Enselic my appologies, take a look at rust-lang/rust-clippy#10851

@nyurik
Copy link
Contributor Author

nyurik commented Aug 16, 2025

P.S. See also rust bug itself rust-lang/rust#112156

@Enselic
Copy link
Collaborator

Enselic commented Aug 16, 2025

thanks! let's get this merged then

there is a lint for this and it would be nice to activate it in bat CI to avoid regressions, but that doesn't block merging this

@Enselic Enselic reopened this Aug 16, 2025
@Enselic
Copy link
Collaborator

Enselic commented Aug 16, 2025

can you resolve conflicts and rebase please?

@Enselic Enselic added the waiting-on-author Progress on this PR is blocked mostly because we are waiting on the author of the PR to do something label Aug 16, 2025
In a few cases, removed the unneeded `&` - this causes a minor slowdown because compiler cannot eliminate those (yet).
@nyurik
Copy link
Contributor Author

nyurik commented Aug 18, 2025

thx, rebased

@nyurik
Copy link
Contributor Author

nyurik commented Aug 18, 2025

P.S. Sadly, there is no lint yet - that's why i created rust-lang/rust-clippy#10851

Copy link
Collaborator

@Enselic Enselic left a comment

Choose a reason for hiding this comment

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

Thank you

@Enselic Enselic removed the waiting-on-author Progress on this PR is blocked mostly because we are waiting on the author of the PR to do something label Aug 19, 2025
@Enselic Enselic merged commit d9fbd18 into sharkdp:master Aug 19, 2025
23 of 24 checks passed
@nyurik nyurik deleted the lints branch August 19, 2025 04:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants