about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorYuri Astrakhan <YuriAstrakhan@gmail.com>2024-07-19 11:51:21 -0400
committerYuri Astrakhan <YuriAstrakhan@gmail.com>2024-07-19 16:08:53 -0400
commit8bcf0b4a374116c5f9cba9b02deb19b3ea694380 (patch)
treeeb65f7bbd5b9b9ca8295919c348d4b472628df1e /compiler/rustc_codegen_llvm/src
parent0cd01aac6a80735cc936f75b45e3545a5273e2ad (diff)
downloadrust-8bcf0b4a374116c5f9cba9b02deb19b3ea694380.tar.gz
rust-8bcf0b4a374116c5f9cba9b02deb19b3ea694380.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 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions