Skip to content

Commit b08bf47

Browse files
committed
fix tests for latest Rust
1 parent d05159f commit b08bf47

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
fe0a415b4ba3310c2263f07e0253e2434310299c
1+
7c71bc3208031b1307573de45a3b3e18fa45787a

tests/run-pass/async-fn.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#![feature(
22
async_await,
33
await_macro,
4-
futures_api,
54
)]
65

76
use std::{future::Future, pin::Pin, task::Poll, ptr};

tests/run-pass/hashmap.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,10 @@ fn test_map<S: BuildHasher>(mut map: HashMap<i32, i32, S>) {
77
map.insert(0, 0);
88
assert_eq!(map.values().fold(0, |x, y| x+y), 0);
99

10-
let table_base = map.get(&0).unwrap() as *const _;
11-
12-
let num = 22; // large enough to trigger a resize
10+
let num = 25;
1311
for i in 1..num {
1412
map.insert(i, i);
1513
}
16-
assert!(table_base != map.get(&0).unwrap() as *const _); // make sure relocation happened
1714
assert_eq!(map.values().fold(0, |x, y| x+y), num*(num-1)/2); // check the right things are in the table now
1815

1916
// Inserting again replaces the existing entries

0 commit comments

Comments
 (0)