about summary refs log tree commit diff
path: root/compiler/rustc
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-08-31 10:08:59 +0200
committerGitHub <noreply@github.com>2024-08-31 10:08:59 +0200
commit25e3b6641018a917c7e7bcbd1dfc593f15eeb6e3 (patch)
tree56962b1c7e8f6064ad1b13548feb2ec07b0e30be /compiler/rustc
parenta59c1a429188c8e15ad8d6c6692520b575736869 (diff)
parentc824c1ada7278ac508143b21dc23aeb1ed7e05a5 (diff)
downloadrust-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