about summary refs log tree commit diff
path: root/tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs
diff options
context:
space:
mode:
authorYuri Astrakhan <YuriAstrakhan@gmail.com>2024-07-19 14:41:59 -0400
committerYuri Astrakhan <YuriAstrakhan@gmail.com>2024-07-19 14:41:59 -0400
commit2a8cc1db3a6064c8b1480556b7377303d233f537 (patch)
tree9b78bad43959c0f9d2cbae0e59a4db7de67669d5 /tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs
parent95c48af7346d280a0378adc302eb94f13c0376a6 (diff)
downloadrust-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