diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-07-19 20:03:58 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-19 20:03:58 +0200 |
| commit | e28be0d16892825141044350d39766be3fa228ac (patch) | |
| tree | 0cbfc85689259beeb3222a263afb26089ef12a15 /compiler/rustc_codegen_llvm/src/llvm_util.rs | |
| parent | 115b0868506fa3b48fe67be998ea291e4026ea75 (diff) | |
| parent | 91275b2c2bf824286b844c38252fdbeb6d995105 (diff) | |
| download | rust-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
