We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97ac129 commit 4491015Copy full SHA for 4491015
src/indexmap.rs
@@ -1208,7 +1208,12 @@ mod tests {
1208
assert_eq!(a.get("k1"), a.get("k2"));
1209
}
1210
1211
+ // tests that use this constant take too long to run under miri, specially on CI, with a map of
1212
+ // this size so make the map smaller when using miri
1213
+ #[cfg(not(miri))]
1214
const MAP_SLOTS: usize = 4096;
1215
+ #[cfg(miri)]
1216
+ const MAP_SLOTS: usize = 64;
1217
fn almost_filled_map() -> FnvIndexMap<usize, usize, MAP_SLOTS> {
1218
let mut almost_filled = FnvIndexMap::new();
1219
for i in 1..MAP_SLOTS {
0 commit comments