rust/library/std
Matthias Krüger 809378bd2e
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`.
2025-03-21 06:56:46 +01:00
..
benches Fix import in bench for wasm 2025-02-12 14:44:30 -08:00
src Rollup merge of #138650 - thaliaarchi:io-write-fmt-known, r=ibraheemdev 2025-03-21 06:56:46 +01:00
tests Rollup merge of #137793 - NobodyXu:stablise-annoymous-pipe, r=joshtriplett 2025-03-17 05:47:50 -04:00
build.rs Rollup merge of #137621 - Berrysoft:cygwin-std, r=joboet 2025-03-17 05:47:49 -04:00
Cargo.toml Auto merge of #138450 - matthiaskrgr:rollup-4im25vf, r=matthiaskrgr 2025-03-13 13:34:28 +00:00