about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-07-20 07:13:45 +0200
committerGitHub <noreply@github.com>2024-07-20 07:13:45 +0200
commit40cfc8837a220c514124878eb73fdb3e808d1e79 (patch)
tree40b03b97786288a1155f601f78af1235a3e9d584 /compiler/rustc_codegen_llvm/src
parentcd8c5f78ec8140a8902747689c9d4b8080d7c66d (diff)
parent8bcf0b4a374116c5f9cba9b02deb19b3ea694380 (diff)
downloadrust-40cfc8837a220c514124878eb73fdb3e808d1e79.tar.gz
rust-40cfc8837a220c514124878eb73fdb3e808d1e79.zip
Rollup merge of #127984 - nyurik:src-refs, r=onur-ozkan
Avoid ref when using format! in src

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 also https://github.com/rust-lang/rust-clippy/issues/10851
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions