about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-03-21 06:56:46 +0100
committerGitHub <noreply@github.com>2025-03-21 06:56:46 +0100
commit809378bd2e87dfcf4e9c15e323ad5c6d14af1474 (patch)
treecf7a11a53d049359622af8308fc96ff86eda18e3 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent1530b03655861b0431c89d4aa6c49661e3c834fd (diff)
parenta0c3dd4df4f3e30331ddbd3b2507f3f8b18d4a3c (diff)
downloadrust-809378bd2e87dfcf4e9c15e323ad5c6d14af1474.tar.gz
rust-809378bd2e87dfcf4e9c15e323ad5c6d14af1474.zip
Rollup merge of #138650 - thaliaarchi:io-write-fmt-known, r=ibraheemdev
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