about summary refs log tree commit diff
path: root/library/std/src/sys/pal/unix/alloc.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-05-18 02:13:28 +0000
committerbors <bors@rust-lang.org>2024-05-18 02:13:28 +0000
commit94be5ab448f9bd0209e3ec20fc355643772da7d0 (patch)
tree43ea46b0d76e5ba81a89b64e0939a6a1cba0db3a /library/std/src/sys/pal/unix/alloc.rs
parent8e78d168040b2d7106a28712c39106602c7a1d61 (diff)
parent53b317710da997fe5e8e852ffbe45f3a3d7af35c (diff)
downloadrust-94be5ab448f9bd0209e3ec20fc355643772da7d0.tar.gz
rust-94be5ab448f9bd0209e3ec20fc355643772da7d0.zip
Auto merge of #125232 - coolreader18:inline-duration-new, r=jhpratt
Inline Duration construction into `Duration::from_{secs,millis,micros,nanos}`

The millis/micros/nanos cases I don't feel as strongly about, but I see no reason why `Duration::from_secs` should call into `Duration::new` - that's just creating unnecessary work for the inlining and DCE passes.
Diffstat (limited to 'library/std/src/sys/pal/unix/alloc.rs')
0 files changed, 0 insertions, 0 deletions