@@ -835,8 +835,11 @@ fn dev_dependencies2_conflict() {
835
835
. build ( ) ;
836
836
p. cargo ( "check" )
837
837
. with_stderr_contains (
838
- "[WARNING] conflicting between `dev-dependencies` and `dev_dependencies` in the `foo` package.\n
839
- `dev_dependencies` is ignored and not recommended for use in the future"
838
+ "\
839
+ [WARNING] conflicting between `dev-dependencies` and `dev_dependencies` in the `foo` package.
840
+
841
+ `dev_dependencies` is ignored and not recommended for use in the future
842
+ " ,
840
843
)
841
844
. run ( ) ;
842
845
}
@@ -872,8 +875,11 @@ fn build_dependencies2_conflict() {
872
875
. build ( ) ;
873
876
p. cargo ( "check" )
874
877
. with_stderr_contains (
875
- "[WARNING] conflicting between `build-dependencies` and `build_dependencies` in the `foo` package.\n
876
- `build_dependencies` is ignored and not recommended for use in the future"
878
+ "\
879
+ [WARNING] conflicting between `build-dependencies` and `build_dependencies` in the `foo` package.
880
+
881
+ `build_dependencies` is ignored and not recommended for use in the future
882
+ " ,
877
883
)
878
884
. run ( ) ;
879
885
}
@@ -900,8 +906,11 @@ fn lib_crate_type2_conflict() {
900
906
. build ( ) ;
901
907
p. cargo ( "check" )
902
908
. with_stderr_contains (
903
- "[WARNING] conflicting between `crate-type` and `crate_type` in the `foo` library target.\n
904
- `crate_type` is ignored and not recommended for use in the future" ,
909
+ "\
910
+ [WARNING] conflicting between `crate-type` and `crate_type` in the `foo` library target.
911
+
912
+ `crate_type` is ignored and not recommended for use in the future
913
+ " ,
905
914
)
906
915
. run ( ) ;
907
916
}
@@ -947,9 +956,11 @@ fn examples_crate_type2_conflict() {
947
956
p. cargo ( "check" )
948
957
. with_stderr_contains (
949
958
"\
950
- [WARNING] conflicting between `crate-type` and `crate_type` in the `ex` example target.\n
959
+ [WARNING] conflicting between `crate-type` and `crate_type` in the `ex` example target.
960
+
951
961
`crate_type` is ignored and not recommended for use in the future
952
- [WARNING] conflicting between `crate-type` and `crate_type` in the `goodbye` example target.\n
962
+ [WARNING] conflicting between `crate-type` and `crate_type` in the `goodbye` example target.
963
+
953
964
`crate_type` is ignored and not recommended for use in the future" ,
954
965
)
955
966
. run ( ) ;
@@ -989,8 +1000,11 @@ fn cargo_platform_build_dependencies2_conflict() {
989
1000
990
1001
p. cargo ( "check" )
991
1002
. with_stderr_contains (
992
- format ! ( "[WARNING] conflicting between `build-dependencies` and `build_dependencies` in the `{}` platform target.\n
993
- `build_dependencies` is ignored and not recommended for use in the future" , host)
1003
+ format ! ( "\
1004
+ [WARNING] conflicting between `build-dependencies` and `build_dependencies` in the `{host}` platform target.
1005
+
1006
+ `build_dependencies` is ignored and not recommended for use in the future
1007
+ " )
994
1008
)
995
1009
. run ( ) ;
996
1010
}
@@ -1028,8 +1042,11 @@ fn cargo_platform_dev_dependencies2_conflict() {
1028
1042
1029
1043
p. cargo ( "check" )
1030
1044
. with_stderr_contains (
1031
- format ! ( "[WARNING] conflicting between `dev-dependencies` and `dev_dependencies` in the `{}` platform target.\n
1032
- `dev_dependencies` is ignored and not recommended for use in the future" , host)
1045
+ format ! ( "\
1046
+ [WARNING] conflicting between `dev-dependencies` and `dev_dependencies` in the `{host}` platform target.
1047
+
1048
+ `dev_dependencies` is ignored and not recommended for use in the future
1049
+ " )
1033
1050
)
1034
1051
. run ( ) ;
1035
1052
}
@@ -1070,8 +1087,11 @@ fn default_features2_conflict() {
1070
1087
1071
1088
p. cargo ( "check" )
1072
1089
. with_stderr_contains (
1073
- "[WARNING] conflicting between `default-features` and `default_features` in the `a` dependency.\n
1074
- `default_features` is ignored and not recommended for use in the future"
1090
+ "\
1091
+ [WARNING] conflicting between `default-features` and `default_features` in the `a` dependency.
1092
+
1093
+ `default_features` is ignored and not recommended for use in the future
1094
+ " ,
1075
1095
)
1076
1096
. run ( ) ;
1077
1097
}
@@ -1096,8 +1116,11 @@ fn proc_macro2_conflict() {
1096
1116
1097
1117
foo. cargo ( "check" )
1098
1118
. with_stderr_contains (
1099
- "[WARNING] conflicting between `proc-macro` and `proc_macro` in the `foo` library target.\n
1100
- `proc_macro` is ignored and not recommended for use in the future" ,
1119
+ "\
1120
+ [WARNING] conflicting between `proc-macro` and `proc_macro` in the `foo` library target.
1121
+
1122
+ `proc_macro` is ignored and not recommended for use in the future
1123
+ " ,
1101
1124
)
1102
1125
. run ( ) ;
1103
1126
}
0 commit comments