about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/check_alignment.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2024-08-29 10:31:17 -0700
committerAlex Crichton <alex@alexcrichton.com>2024-08-29 10:31:17 -0700
commitc824c1ada7278ac508143b21dc23aeb1ed7e05a5 (patch)
treece185ca223d0e6615bed736e1a85013da9dd3a33 /compiler/rustc_mir_transform/src/check_alignment.rs
parent6cf068db566de080dfa7ed24a216ea3aed2b98ce (diff)
downloadrust-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_mir_transform/src/check_alignment.rs')
0 files changed, 0 insertions, 0 deletions