diff options
| author | Yuri Astrakhan <YuriAstrakhan@gmail.com> | 2024-07-19 11:51:21 -0400 |
|---|---|---|
| committer | Yuri Astrakhan <YuriAstrakhan@gmail.com> | 2024-07-19 16:08:53 -0400 |
| commit | 8bcf0b4a374116c5f9cba9b02deb19b3ea694380 (patch) | |
| tree | eb65f7bbd5b9b9ca8295919c348d4b472628df1e /compiler/rustc_codegen_llvm/src | |
| parent | 0cd01aac6a80735cc936f75b45e3545a5273e2ad (diff) | |
| download | rust-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
