mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
Fix tests due to change in dead_code diagnostic.
This commit is contained in:
parent
ed549d8717
commit
502a9c5407
@ -647,7 +647,7 @@ fn cargo_compile_with_warnings_in_the_root_package() {
|
||||
.build();
|
||||
|
||||
p.cargo("build")
|
||||
.with_stderr_contains("[..]function is never used: `dead`[..]")
|
||||
.with_stderr_contains("[WARNING] [..]dead[..]")
|
||||
.run();
|
||||
}
|
||||
|
||||
@ -686,7 +686,7 @@ fn cargo_compile_with_warnings_in_a_dep_package() {
|
||||
.build();
|
||||
|
||||
p.cargo("build")
|
||||
.with_stderr_contains("[..]function is never used: `dead`[..]")
|
||||
.with_stderr_contains("[WARNING] [..]dead[..]")
|
||||
.run();
|
||||
|
||||
assert!(p.bin("foo").is_file());
|
||||
|
@ -1923,7 +1923,7 @@ fn upstream_warnings_on_extra_verbose(cargo: fn(&Project, &str) -> Execs) {
|
||||
.publish();
|
||||
|
||||
cargo(&p, "build -vv")
|
||||
.with_stderr_contains("[..]warning: function is never used[..]")
|
||||
.with_stderr_contains("[WARNING] [..]unused[..]")
|
||||
.run();
|
||||
}
|
||||
|
||||
|
@ -316,7 +316,7 @@ fn check_core() {
|
||||
p.cargo("check -v")
|
||||
.build_std_arg(&setup, "core")
|
||||
.target_host()
|
||||
.with_stderr_contains("[WARNING] [..]unused_fn[..]`")
|
||||
.with_stderr_contains("[WARNING] [..]unused_fn[..]")
|
||||
.run();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user