diff options
| author | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2022-06-03 22:01:56 +0200 |
|---|---|---|
| committer | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2022-06-04 17:46:29 +0200 |
| commit | fc8b13cb96a5b45bb7028ca0f50d1444f0f95582 (patch) | |
| tree | a5a0f90a578041dabd1e0dc8ef3e969f366fb10b /compiler/rustc_data_structures/src/graph | |
| parent | 44e9516c8535c6f41f2d1c444657cd672b4ab81b (diff) | |
| download | rust-fc8b13cb96a5b45bb7028ca0f50d1444f0f95582.tar.gz rust-fc8b13cb96a5b45bb7028ca0f50d1444f0f95582.zip | |
Adapt rustc_data_structures tests to run in strict miri
Some tests took too long and owning_ref is fundamentally flawed, so don't run these tests or run them with a shorter N. This makes miri with `-Zmiri-strict-provenance` usable to find UB.
Diffstat (limited to 'compiler/rustc_data_structures/src/graph')
| -rw-r--r-- | compiler/rustc_data_structures/src/graph/scc/tests.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_data_structures/src/graph/scc/tests.rs b/compiler/rustc_data_structures/src/graph/scc/tests.rs index 364005e67e6..9940fee60d7 100644 --- a/compiler/rustc_data_structures/src/graph/scc/tests.rs +++ b/compiler/rustc_data_structures/src/graph/scc/tests.rs @@ -156,7 +156,10 @@ fn test_deep_linear() { v … */ + #[cfg(not(miri))] const NR_NODES: usize = 1 << 14; + #[cfg(miri)] + const NR_NODES: usize = 1 << 3; let mut nodes = vec![]; for i in 1..NR_NODES { nodes.push((i - 1, i)); |
