diff options
| author | Thalia Archibald <thalia@archibald.dev> | 2025-03-01 12:34:09 -0800 |
|---|---|---|
| committer | Thalia Archibald <thalia@archibald.dev> | 2025-03-18 01:40:27 -0700 |
| commit | a0c3dd4df4f3e30331ddbd3b2507f3f8b18d4a3c (patch) | |
| tree | 28d695ef5cc8578221f55cfff92773046aed1acf /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 493c38ba371929579fe136df26eccd9516347c7a (diff) | |
| download | rust-a0c3dd4df4f3e30331ddbd3b2507f3f8b18d4a3c.tar.gz rust-a0c3dd4df4f3e30331ddbd3b2507f3f8b18d4a3c.zip | |
Optimize io::Write::write_fmt for constant strings
When the formatting args to `fmt::Write::write_fmt` are a statically known string, it simplifies to only calling `write_str` without a runtime branch. Do the same in `io::Write::write_fmt` with `write_all`. Also, match the convention of `fmt::Write` for the name of `args`.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
