rust/library/std/src
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
..
backtrace
collections Rollup merge of #137870 - karolzwolak:lazylock-const-hashmaps-137566, r=cuviper 2025-03-14 01:37:30 -04:00
ffi Specialize constructing OsString from strings 2025-02-28 13:50:31 -08:00
fs library: Use size_of from the prelude instead of imported 2025-03-06 20:20:38 -08:00
hash
io Rollup merge of #138650 - thaliaarchi:io-write-fmt-known, r=ibraheemdev 2025-03-21 06:56:46 +01:00
net Rollup merge of #136842 - randomPoison:trusty-libstd-v3, r=ChrisDenton 2025-03-13 10:58:17 +01:00
os Rollup merge of #137793 - NobodyXu:stablise-annoymous-pipe, r=joshtriplett 2025-03-17 05:47:50 -04:00
prelude Implement #[define_opaque] attribute for functions. 2025-03-11 12:05:02 +00:00
process std: Apply deprecated_safe_2024 2025-02-13 13:10:28 -08:00
sync Auto merge of #137237 - cuviper:stage0, r=Mark-Simulacrum 2025-02-23 11:12:56 +00:00
sys Auto merge of #138653 - matthiaskrgr:rollup-fwwqmr7, r=matthiaskrgr 2025-03-19 09:28:24 +00:00
sys_common Move fs into sys 2025-03-08 16:22:37 -08:00
thread library: Use size_of from the prelude instead of imported 2025-03-06 20:20:38 -08:00
alloc.rs Mark imports of #[rustc_std_internal_symbol] items with this attribute 2025-03-17 14:06:56 +00:00
ascii.rs
backtrace.rs Implement #[define_opaque] attribute for functions. 2025-03-11 12:05:02 +00:00
bstr.rs Implement ByteStr and ByteString types 2025-01-11 06:35:21 +02:00
env.rs Rollup merge of #136320 - RalfJung:exit, r=the8472 2025-03-18 10:09:28 +01:00
error.rs Move std::error unit tests to integration tests 2025-01-26 10:28:04 +00:00
f16.rs Rollup merge of #137357 - syvb:sv/log-docs, r=tgross35 2025-03-21 06:56:45 +01:00
f32.rs Rollup merge of #137357 - syvb:sv/log-docs, r=tgross35 2025-03-21 06:56:45 +01:00
f64.rs Rollup merge of #137357 - syvb:sv/log-docs, r=tgross35 2025-03-21 06:56:45 +01:00
f128.rs Rollup merge of #137357 - syvb:sv/log-docs, r=tgross35 2025-03-21 06:56:45 +01:00
fs.rs Disable unsupported tests 2025-03-10 10:00:25 -07:00
keyword_docs.rs Migrate std to Rust 2024 2025-03-11 09:46:34 -07:00
lib.miri.rs
lib.rs Rollup merge of #137492 - nabijaczleweli:master, r=thomcc 2025-03-16 13:19:52 +08:00
macros.rs fix doc path in std::fmt macro 2025-02-25 09:08:22 +05:30
num.rs Move std::num unit tests to integration tests 2025-01-26 10:28:04 +00:00
panic.rs add last std diagnostic items for clippy 2025-02-18 10:54:37 +01:00
panicking.rs Mark imports of #[rustc_std_internal_symbol] items with this attribute 2025-03-17 14:06:56 +00:00
pat.rs
path.rs Remove has_redox_scheme 2025-03-13 20:09:07 +00:00
process.rs Rollup merge of #136320 - RalfJung:exit, r=the8472 2025-03-18 10:09:28 +01:00
random.rs Unify cygwin & horizon random impl 2025-03-10 21:23:32 +08:00
rt.rs Rollup merge of #135446 - klensy:panic_immediate_abort_ext, r=Mark-Simulacrum 2025-01-20 12:38:32 +08:00
test_helpers.rs std: get rid of sys_common::io 2025-02-07 16:54:07 +01:00
time.rs Rollup merge of #136301 - hkBst:patch-33, r=thomcc 2025-02-19 18:52:04 +01:00