diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2024-08-29 10:31:17 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2024-08-29 10:31:17 -0700 |
| commit | c824c1ada7278ac508143b21dc23aeb1ed7e05a5 (patch) | |
| tree | ce185ca223d0e6615bed736e1a85013da9dd3a33 /compiler/rustc_interface/src | |
| parent | 6cf068db566de080dfa7ed24a216ea3aed2b98ce (diff) | |
| download | rust-c824c1ada7278ac508143b21dc23aeb1ed7e05a5.tar.gz rust-c824c1ada7278ac508143b21dc23aeb1ed7e05a5.zip | |
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.
Diffstat (limited to 'compiler/rustc_interface/src')
0 files changed, 0 insertions, 0 deletions
