rust/library/std
Matthias Krüger 25e3b66410
Rollup merge of #129754 - alexcrichton:fix-wasi-long-sleep, r=workingjubilee
wasi: Fix sleeping for `Duration::MAX`

This commit fixes an assert in the WASI-specific implementation of thread sleep to ensure that sleeping for a very large period of time blocks instead of panicking. This can come up when testing programs that sleep "forever", for example.

I'll note that I haven't included a test for this since it's sort of difficult to test. I've tested this locally though that long sleeps do indeed block and short sleeps still only sleep for a short amount of time.
2024-08-31 10:08:59 +02:00
..
benches Reformat `use` declarations. 2024-07-29 08:26:52 +10:00
src Rollup merge of #129754 - alexcrichton:fix-wasi-long-sleep, r=workingjubilee 2024-08-31 10:08:59 +02:00
tests rustc_target: Add SME aarch64 features 2024-08-27 11:11:47 +01:00
Cargo.toml Update `compiler_builtins` to `0.1.123` 2024-08-29 08:38:19 +08:00
build.rs Enable `f16` tests on x86 and x86-64 2024-08-23 13:54:50 -05:00