@@ -833,7 +833,7 @@ fn dev_dependencies2_conflict() {
833
833
)
834
834
. file ( "a/src/lib.rs" , "" )
835
835
. build ( ) ;
836
- p. cargo ( "build " )
836
+ p. cargo ( "check " )
837
837
. with_stderr_contains (
838
838
"[WARNING] conflicting between `dev-dependencies` and `dev_dependencies` in the `foo` package.\n
839
839
`dev_dependencies` is ignored and not recommended for use in the future"
@@ -870,7 +870,7 @@ fn build_dependencies2_conflict() {
870
870
)
871
871
. file ( "a/src/lib.rs" , "" )
872
872
. build ( ) ;
873
- p. cargo ( "build " )
873
+ p. cargo ( "check " )
874
874
. with_stderr_contains (
875
875
"[WARNING] conflicting between `build-dependencies` and `build_dependencies` in the `foo` package.\n
876
876
`build_dependencies` is ignored and not recommended for use in the future"
@@ -898,7 +898,7 @@ fn lib_crate_type2_conflict() {
898
898
)
899
899
. file ( "src/lib.rs" , "pub fn foo() {}" )
900
900
. build ( ) ;
901
- p. cargo ( "build " )
901
+ p. cargo ( "check " )
902
902
. with_stderr_contains (
903
903
"[WARNING] conflicting between `crate-type` and `crate_type` in the `foo` library target.\n
904
904
`crate_type` is ignored and not recommended for use in the future" ,
@@ -944,7 +944,7 @@ fn examples_crate_type2_conflict() {
944
944
"# ,
945
945
)
946
946
. build ( ) ;
947
- p. cargo ( "build " )
947
+ p. cargo ( "check " )
948
948
. with_stderr_contains (
949
949
"\
950
950
[WARNING] conflicting between `crate-type` and `crate_type` in the `ex` example target.\n
@@ -987,14 +987,12 @@ fn cargo_platform_build_dependencies2_conflict() {
987
987
. file ( "build/src/lib.rs" , "pub fn build() {}" )
988
988
. build ( ) ;
989
989
990
- p. cargo ( "build " )
990
+ p. cargo ( "check " )
991
991
. with_stderr_contains (
992
992
format ! ( "[WARNING] conflicting between `build-dependencies` and `build_dependencies` in the `{}` platform target.\n
993
993
`build_dependencies` is ignored and not recommended for use in the future" , host)
994
994
)
995
995
. run ( ) ;
996
-
997
- assert ! ( p. bin( "foo" ) . is_file( ) ) ;
998
996
}
999
997
1000
998
#[ cargo_test]
@@ -1028,15 +1026,12 @@ fn cargo_platform_dev_dependencies2_conflict() {
1028
1026
. file ( "dev/src/lib.rs" , "pub fn dev() {}" )
1029
1027
. build ( ) ;
1030
1028
1031
- p. cargo ( "build " )
1029
+ p. cargo ( "check " )
1032
1030
. with_stderr_contains (
1033
1031
format ! ( "[WARNING] conflicting between `dev-dependencies` and `dev_dependencies` in the `{}` platform target.\n
1034
1032
`dev_dependencies` is ignored and not recommended for use in the future" , host)
1035
1033
)
1036
1034
. run ( ) ;
1037
-
1038
- assert ! ( p. bin( "foo" ) . is_file( ) ) ;
1039
- p. cargo ( "test" ) . run ( ) ;
1040
1035
}
1041
1036
1042
1037
#[ cargo_test]
0 commit comments