Skip to content

Commit b1209f8

Browse files
committed
Auto merge of #5945 - dwijnand:remove-hamcrest, r=alexcrichton
Remove Cargo's internal `hamcrest` module Fixes #5742
2 parents a49589c + a88a637 commit b1209f8

30 files changed

+617
-951
lines changed

tests/testsuite/bench.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use support::hamcrest::{assert_that, existing_file};
21
use support::is_nightly;
32
use support::paths::CargoPathExt;
43
use support::{basic_bin_manifest, basic_lib_manifest, basic_manifest, project};
@@ -33,7 +32,7 @@ fn cargo_bench_simple() {
3332
).build();
3433

3534
p.cargo("build").run();
36-
assert_that(&p.bin("foo"), existing_file());
35+
assert!(p.bin("foo").is_file());
3736

3837
p.process(&p.bin("foo")).with_stdout("hello\n").run();
3938

@@ -302,7 +301,7 @@ fn cargo_bench_failing_test() {
302301
).build();
303302

304303
p.cargo("build").run();
305-
assert_that(&p.bin("foo"), existing_file());
304+
assert!(p.bin("foo").is_file());
306305

307306
p.process(&p.bin("foo")).with_stdout("hello\n").run();
308307

0 commit comments

Comments
 (0)