diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-08-31 10:08:59 +0200 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-31 10:08:59 +0200 | 
| commit | 25e3b6641018a917c7e7bcbd1dfc593f15eeb6e3 (patch) | |
| tree | 56962b1c7e8f6064ad1b13548feb2ec07b0e30be /compiler/rustc | |
| parent | a59c1a429188c8e15ad8d6c6692520b575736869 (diff) | |
| parent | c824c1ada7278ac508143b21dc23aeb1ed7e05a5 (diff) | |
| download | rust-25e3b6641018a917c7e7bcbd1dfc593f15eeb6e3.tar.gz rust-25e3b6641018a917c7e7bcbd1dfc593f15eeb6e3.zip | |
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.
Diffstat (limited to 'compiler/rustc')
0 files changed, 0 insertions, 0 deletions
