diff --git a/crates/cargo-test-support/src/cross_compile.rs b/crates/cargo-test-support/src/cross_compile.rs index 7d3ec335301..ff272d482f3 100644 --- a/crates/cargo-test-support/src/cross_compile.rs +++ b/crates/cargo-test-support/src/cross_compile.rs @@ -177,7 +177,7 @@ rustup does not appear to be installed. Make sure that the appropriate }, } - panic!(message); + panic!("{}", message); } /// The alternate target-triple to build with. diff --git a/tests/testsuite/cargo_command.rs b/tests/testsuite/cargo_command.rs index 75eec676dfb..04e3051c785 100644 --- a/tests/testsuite/cargo_command.rs +++ b/tests/testsuite/cargo_command.rs @@ -365,5 +365,5 @@ fn closed_output_ok() { .unwrap(); let status = child.wait().unwrap(); assert!(status.success()); - assert!(s.is_empty(), s); + assert!(s.is_empty(), "{}", s); } diff --git a/tests/testsuite/new.rs b/tests/testsuite/new.rs index 548810bce26..9a7f71cf125 100644 --- a/tests/testsuite/new.rs +++ b/tests/testsuite/new.rs @@ -370,7 +370,11 @@ fn finds_git_author() { let toml = paths::root().join("foo/Cargo.toml"); let contents = fs::read_to_string(&toml).unwrap(); - assert!(contents.contains(r#"authors = ["foo "]"#), contents); + assert!( + contents.contains(r#"authors = ["foo "]"#), + "{}", + contents + ); } #[cargo_test] @@ -411,7 +415,11 @@ fn finds_git_author_in_included_config() { cargo_process("new foo/bar").run(); let toml = paths::root().join("foo/bar/Cargo.toml"); let contents = fs::read_to_string(&toml).unwrap(); - assert!(contents.contains(r#"authors = ["foo "]"#), contents,); + assert!( + contents.contains(r#"authors = ["foo "]"#), + "{}", + contents + ); } #[cargo_test] @@ -632,7 +640,7 @@ fn new_with_blank_email() { .run(); let contents = fs::read_to_string(paths::root().join("foo/Cargo.toml")).unwrap(); - assert!(contents.contains(r#"authors = ["Sen"]"#), contents); + assert!(contents.contains(r#"authors = ["Sen"]"#), "{}", contents); } #[cargo_test]