From c23a457e72abe608715ac76f076f47dc42af07a5 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 30 May 2024 20:31:44 +0200 Subject: Merging upstream version 1.74.1+dfsg1. Signed-off-by: Daniel Baumann --- src/tools/cargo/tests/testsuite/script.rs | 37 ++++++++++++++----------------- 1 file changed, 17 insertions(+), 20 deletions(-) (limited to 'src/tools/cargo/tests/testsuite/script.rs') diff --git a/src/tools/cargo/tests/testsuite/script.rs b/src/tools/cargo/tests/testsuite/script.rs index 0c0441d62..96f3a5eb4 100644 --- a/src/tools/cargo/tests/testsuite/script.rs +++ b/src/tools/cargo/tests/testsuite/script.rs @@ -162,7 +162,7 @@ fn warn_when_plugin_masks_manifest_on_stable() { .with_stdout("") .with_stderr( "\ -warning: external subcommand `echo.rs` has the appearance of a manfiest-command +warning: external subcommand `echo.rs` has the appearance of a manifest-command This was previously accepted but will be phased out when `-Zscript` is stabilized. For more information, see issue #12207 . ", @@ -208,11 +208,10 @@ error: running `echo.rs` requires `-Zscript` #[cargo_test] fn clean_output_with_edition() { let script = r#"#!/usr/bin/env cargo - -//! ```cargo -//! [package] -//! edition = "2018" -//! ``` +```cargo +[package] +edition = "2018" +``` fn main() { println!("Hello world!"); @@ -240,10 +239,9 @@ fn main() { #[cargo_test] fn warning_without_edition() { let script = r#"#!/usr/bin/env cargo - -//! ```cargo -//! [package] -//! ``` +```cargo +[package] +``` fn main() { println!("Hello world!"); @@ -625,11 +623,10 @@ fn missing_script_rs() { fn test_name_same_as_dependency() { Package::new("script", "1.0.0").publish(); let script = r#"#!/usr/bin/env cargo - -//! ```cargo -//! [dependencies] -//! script = "1.0.0" -//! ``` +```cargo +[dependencies] +script = "1.0.0" +``` fn main() { println!("Hello world!"); @@ -662,11 +659,10 @@ fn main() { #[cargo_test] fn test_path_dep() { let script = r#"#!/usr/bin/env cargo - -//! ```cargo -//! [dependencies] -//! bar.path = "./bar" -//! ``` +```cargo +[dependencies] +bar.path = "./bar" +``` fn main() { println!("Hello world!"); @@ -980,6 +976,7 @@ fn cmd_clean_with_embedded() { .with_stderr( "\ [WARNING] `package.edition` is unspecified, defaulting to `2021` +[REMOVED] [..] files, [..] total ", ) .run(); -- cgit v1.2.3