diff options
| author | Yuri Astrakhan <YuriAstrakhan@gmail.com> | 2024-07-19 16:10:24 -0400 |
|---|---|---|
| committer | Yuri Astrakhan <YuriAstrakhan@gmail.com> | 2024-07-19 16:10:24 -0400 |
| commit | 266abf3c08203d0ae7bf6d0ba18db5a6df2fd1c2 (patch) | |
| tree | ffd5fbc2ebf4c8e564f9827edd0d4c01114c3fd7 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 057c4ae28766613da5b6578fa13d2412604b633b (diff) | |
| download | rust-266abf3c08203d0ae7bf6d0ba18db5a6df2fd1c2.tar.gz rust-266abf3c08203d0ae7bf6d0ba18db5a6df2fd1c2.zip | |
Avoid ref when using format!
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_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
