Skip to content

Commit 03a8490

Browse files
committed
fix tests including dead_code warnings
1 parent 2fcd302 commit 03a8490

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/testsuite/build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ fn cargo_compile_with_warnings_in_the_root_package() {
647647
.build();
648648

649649
p.cargo("build")
650-
.with_stderr_contains("[..]function is never used: `dead`[..]")
650+
.with_stderr_contains("[..]function `dead` is never used[..]")
651651
.run();
652652
}
653653

@@ -686,7 +686,7 @@ fn cargo_compile_with_warnings_in_a_dep_package() {
686686
.build();
687687

688688
p.cargo("build")
689-
.with_stderr_contains("[..]function is never used: `dead`[..]")
689+
.with_stderr_contains("[..]function `dead` is never used[..]")
690690
.run();
691691

692692
assert!(p.bin("foo").is_file());

tests/testsuite/registry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1923,7 +1923,7 @@ fn upstream_warnings_on_extra_verbose(cargo: fn(&Project, &str) -> Execs) {
19231923
.publish();
19241924

19251925
cargo(&p, "build -vv")
1926-
.with_stderr_contains("[..]warning: function is never used[..]")
1926+
.with_stderr_contains("[..]warning: function `unused` is never used[..]")
19271927
.run();
19281928
}
19291929

0 commit comments

Comments
 (0)