about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/tests.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-07-07 14:22:03 +0200
committerGitHub <noreply@github.com>2024-07-07 14:22:03 +0200
commitb564c510c1b794cfb2e59ef64d14ffcdc22db6f5 (patch)
tree4e8b7a8690e2b1023e198c91b5efeb8b731218b0 /compiler/rustc_parse/src/parser/tests.rs
parent1ee6345b7b76416ca9cf4eacdb74d9590563c53f (diff)
parentbee9120458dd3eb2c1486dd6c2344ec2c582f1b8 (diff)
downloadrust-b564c510c1b794cfb2e59ef64d14ffcdc22db6f5.tar.gz
rust-b564c510c1b794cfb2e59ef64d14ffcdc22db6f5.zip
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.)
Diffstat (limited to 'compiler/rustc_parse/src/parser/tests.rs')
0 files changed, 0 insertions, 0 deletions