about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm_util.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-07-19 20:03:58 +0200
committerGitHub <noreply@github.com>2024-07-19 20:03:58 +0200
commite28be0d16892825141044350d39766be3fa228ac (patch)
tree0cbfc85689259beeb3222a263afb26089ef12a15 /compiler/rustc_codegen_llvm/src/llvm_util.rs
parent115b0868506fa3b48fe67be998ea291e4026ea75 (diff)
parent91275b2c2bf824286b844c38252fdbeb6d995105 (diff)
downloadrust-e28be0d16892825141044350d39766be3fa228ac.tar.gz
rust-e28be0d16892825141044350d39766be3fa228ac.zip
Rollup merge of #127978 - nyurik:lib-refs, r=workingjubilee
Avoid ref when using format! for perf

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/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions