diff options
| author | Yuri Astrakhan <YuriAstrakhan@gmail.com> | 2024-07-19 14:41:59 -0400 |
|---|---|---|
| committer | Yuri Astrakhan <YuriAstrakhan@gmail.com> | 2024-07-19 14:41:59 -0400 |
| commit | 2a8cc1db3a6064c8b1480556b7377303d233f537 (patch) | |
| tree | 9b78bad43959c0f9d2cbae0e59a4db7de67669d5 /tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs | |
| parent | 95c48af7346d280a0378adc302eb94f13c0376a6 (diff) | |
| download | rust-2a8cc1db3a6064c8b1480556b7377303d233f537.tar.gz rust-2a8cc1db3a6064c8b1480556b7377303d233f537.zip | |
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.
Diffstat (limited to 'tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs')
0 files changed, 0 insertions, 0 deletions
