Skip to content

Commit c9325c9

Browse files
committed
refactor(toml): Move project tests next to each other
1 parent 77f96f5 commit c9325c9

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

tests/testsuite/check.rs

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -979,6 +979,32 @@ fn rustc_workspace_wrapper_excludes_published_deps() {
979979
.run();
980980
}
981981

982+
#[cargo_test]
983+
fn warn_manifest_with_project() {
984+
let p = project()
985+
.file(
986+
"Cargo.toml",
987+
r#"
988+
[project]
989+
name = "foo"
990+
version = "0.0.1"
991+
edition = "2015"
992+
"#,
993+
)
994+
.file("src/main.rs", "fn main() {}")
995+
.build();
996+
997+
p.cargo("check")
998+
.with_stderr(
999+
"\
1000+
[WARNING] `[project]` is deprecated in favor of `[package]`
1001+
[CHECKING] foo v0.0.1 ([CWD])
1002+
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [..]
1003+
",
1004+
)
1005+
.run();
1006+
}
1007+
9821008
#[cargo_test]
9831009
fn warn_manifest_package_and_project() {
9841010
let p = project()
@@ -1065,32 +1091,6 @@ fn git_manifest_package_and_project() {
10651091
.run();
10661092
}
10671093

1068-
#[cargo_test]
1069-
fn warn_manifest_with_project() {
1070-
let p = project()
1071-
.file(
1072-
"Cargo.toml",
1073-
r#"
1074-
[project]
1075-
name = "foo"
1076-
version = "0.0.1"
1077-
edition = "2015"
1078-
"#,
1079-
)
1080-
.file("src/main.rs", "fn main() {}")
1081-
.build();
1082-
1083-
p.cargo("check")
1084-
.with_stderr(
1085-
"\
1086-
[WARNING] `[project]` is deprecated in favor of `[package]`
1087-
[CHECKING] foo v0.0.1 ([CWD])
1088-
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [..]
1089-
",
1090-
)
1091-
.run();
1092-
}
1093-
10941094
#[cargo_test]
10951095
fn git_manifest_with_project() {
10961096
let p = project();

0 commit comments

Comments
 (0)