Skip to content

Commit 0c5f442

Browse files
committed
update miri test
1 parent 479be6a commit 0c5f442

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/tools/miri/tests/pass/btreemap.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//@revisions: stack tree
22
//@[tree]compile-flags: -Zmiri-tree-borrows
33
//@compile-flags: -Zmiri-strict-provenance
4-
#![feature(btree_drain_filter)]
4+
#![feature(btree_extract_if)]
55
use std::collections::{BTreeMap, BTreeSet};
66
use std::mem;
77

@@ -49,8 +49,8 @@ pub fn main() {
4949
}
5050
test_all_refs(&mut 13, b.values_mut());
5151

52-
// Test forgetting the drain.
53-
let mut d = b.drain_filter(|_, i| *i < 30);
52+
// Test forgetting the extractor.
53+
let mut d = b.extract_if(|_, i| *i < 30);
5454
d.next().unwrap();
5555
mem::forget(d);
5656
}

0 commit comments

Comments
 (0)