@@ -832,10 +832,11 @@ fn dev_dependencies2() {
832
832
. file ( "a/src/lib.rs" , "" )
833
833
. build ( ) ;
834
834
p. cargo ( "check" )
835
- . with_stderr_does_not_contain (
835
+ . with_stderr_contains (
836
836
"\
837
- [WARNING] [..]
838
- " ,
837
+ [WARNING] `dev_dependencies` is deprecated in favor of `dev-dependencies` and will not work in the 2024 edition
838
+ (in the `foo` package)
839
+ "
839
840
)
840
841
. run ( ) ;
841
842
}
@@ -906,10 +907,11 @@ fn build_dependencies2() {
906
907
. file ( "a/src/lib.rs" , "" )
907
908
. build ( ) ;
908
909
p. cargo ( "check" )
909
- . with_stderr_does_not_contain (
910
+ . with_stderr_contains (
910
911
"\
911
- [WARNING] [..]
912
- " ,
912
+ [WARNING] `build_dependencies` is deprecated in favor of `build-dependencies` and will not work in the 2024 edition
913
+ (in the `foo` package)
914
+ "
913
915
)
914
916
. run ( ) ;
915
917
}
@@ -972,9 +974,10 @@ fn lib_crate_type2() {
972
974
. file ( "src/lib.rs" , "pub fn foo() {}" )
973
975
. build ( ) ;
974
976
p. cargo ( "check" )
975
- . with_stderr_does_not_contain (
977
+ . with_stderr_contains (
976
978
"\
977
- [WARNING] [..]
979
+ [WARNING] `crate_type` is deprecated in favor of `crate-type` and will not work in the 2024 edition
980
+ (in the `foo` library target)
978
981
" ,
979
982
)
980
983
. run ( ) ;
@@ -1046,9 +1049,12 @@ fn examples_crate_type2() {
1046
1049
)
1047
1050
. build ( ) ;
1048
1051
p. cargo ( "check" )
1049
- . with_stderr_does_not_contain (
1052
+ . with_stderr_contains (
1050
1053
"\
1051
- [WARNING] [..]
1054
+ [WARNING] `crate_type` is deprecated in favor of `crate-type` and will not work in the 2024 edition
1055
+ (in the `ex` example target)
1056
+ [WARNING] `crate_type` is deprecated in favor of `crate-type` and will not work in the 2024 edition
1057
+ (in the `goodbye` example target)
1052
1058
" ,
1053
1059
)
1054
1060
. run ( ) ;
@@ -1133,10 +1139,11 @@ fn cargo_platform_build_dependencies2() {
1133
1139
. build ( ) ;
1134
1140
1135
1141
p. cargo ( "check" )
1136
- . with_stderr_does_not_contain (
1137
- "\
1138
- [WARNING] [..]
1139
- " ,
1142
+ . with_stderr_contains (
1143
+ format ! ( "\
1144
+ [WARNING] `build_dependencies` is deprecated in favor of `build-dependencies` and will not work in the 2024 edition
1145
+ (in the `{host}` platform target)
1146
+ " )
1140
1147
)
1141
1148
. run ( ) ;
1142
1149
}
@@ -1212,10 +1219,11 @@ fn cargo_platform_dev_dependencies2() {
1212
1219
. build ( ) ;
1213
1220
1214
1221
p. cargo ( "check" )
1215
- . with_stderr_does_not_contain (
1216
- "\
1217
- [WARNING] [..]
1218
- " ,
1222
+ . with_stderr_contains (
1223
+ format ! ( "\
1224
+ [WARNING] `dev_dependencies` is deprecated in favor of `dev-dependencies` and will not work in the 2024 edition
1225
+ (in the `{host}` platform target)
1226
+ " )
1219
1227
)
1220
1228
. run ( ) ;
1221
1229
}
@@ -1295,10 +1303,11 @@ fn default_features2() {
1295
1303
. build ( ) ;
1296
1304
1297
1305
p. cargo ( "check" )
1298
- . with_stderr_does_not_contain (
1306
+ . with_stderr_contains (
1299
1307
"\
1300
- [WARNING] [..]
1301
- " ,
1308
+ [WARNING] `default_features` is deprecated in favor of `default-features` and will not work in the 2024 edition
1309
+ (in the `a` dependency)
1310
+ "
1302
1311
)
1303
1312
. run ( ) ;
1304
1313
}
@@ -1364,9 +1373,10 @@ fn proc_macro2() {
1364
1373
. build ( ) ;
1365
1374
1366
1375
foo. cargo ( "check" )
1367
- . with_stderr_does_not_contain (
1376
+ . with_stderr_contains (
1368
1377
"\
1369
- [WARNING] [..]
1378
+ [WARNING] `proc_macro` is deprecated in favor of `proc-macro` and will not work in the 2024 edition
1379
+ (in the `foo` library target)
1370
1380
" ,
1371
1381
)
1372
1382
. run ( ) ;
0 commit comments