diff options
| author | bors <bors@rust-lang.org> | 2024-07-20 06:40:27 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-07-20 06:40:27 +0000 |
| commit | aa52c5d9639ec7bff59576b4e9b466ca215eaed7 (patch) | |
| tree | a6ca7149a045d5e864e59750fabc5dd32116df18 /tests/codegen/patchable-function-entry | |
| parent | 91b9739d124e75d410971e94b628bf6b4f359b0c (diff) | |
| parent | afa72d53e3e68cdf7beeae662fce6f28e84e4e3d (diff) | |
| download | rust-aa52c5d9639ec7bff59576b4e9b466ca215eaed7.tar.gz rust-aa52c5d9639ec7bff59576b4e9b466ca215eaed7.zip | |
Auto merge of #17641 - nyurik:optimize-refs, r=Veykril
Avoid ref when using format! in compiler
Clean up a few minor refs in `format!` macro, as it has a performance cost. Apparently the compiler is unable to inline `format!("{}", &variable)`, and does a run-time double-reference instead (format macro already does one level referencing). Inlining format args prevents accidental `&` misuse.
See https://github.com/rust-lang/rust-clippy/issues/10851
Diffstat (limited to 'tests/codegen/patchable-function-entry')
0 files changed, 0 insertions, 0 deletions
