rust/library/std
Matthias Krüger b564c510c1
Rollup merge of #127447 - RalfJung:once_lock_miri, r=joboet
once_lock: make test not take as long in Miri

Allocating 1000 list elements takes a while (`@zachs18` reported >5min), so let's reduce the iteration count when running in Miri. Unfortunately due to this clever `while let i @ 0..LEN =` thing, the count needs to be a constants, and constants cannot be shadowed, so we need to use another trick to hide the `cfg!(miri)` from the docs. (I think this loop condition may be a bit too clever, it took me a bit to decipher. Ideally this would be `while let i = ... && i < LEN`, but that is not stable yet.)
2024-07-07 14:22:03 +02:00
..
benches also test parts of std 2024-04-07 10:05:57 +02:00
src Rollup merge of #127447 - RalfJung:once_lock_miri, r=joboet 2024-07-07 14:22:03 +02:00
tests Add blank lines after module-level //! comments. 2024-06-20 09:23:20 +10:00
build.rs Add build.rs config for reliable f16 and f128 2024-06-25 01:32:36 -04:00
Cargo.toml Cleanup bootstrap check-cfg 2024-06-27 11:30:03 +02:00