@@ -1159,6 +1159,8 @@ fn bin_crate_type2() {
1159
1159
p. cargo ( "check" )
1160
1160
. with_stderr (
1161
1161
"\
1162
+ [WARNING] `crate_type` is deprecated in favor of `crate-type` and will not work in the 2024 edition
1163
+ (in the `foo` binary target)
1162
1164
[CHECKING] foo v0.5.0 ([CWD])
1163
1165
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [..]s
1164
1166
" ,
@@ -1190,10 +1192,14 @@ fn bin_crate_type2_2024() {
1190
1192
. build ( ) ;
1191
1193
p. cargo ( "check" )
1192
1194
. masquerade_as_nightly_cargo ( & [ "edition2024" ] )
1195
+ . with_status ( 101 )
1193
1196
. with_stderr (
1194
1197
"\
1195
- [CHECKING] foo v0.5.0 ([CWD])
1196
- [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [..]s
1198
+ [ERROR] failed to parse manifest at `[CWD]/Cargo.toml`
1199
+
1200
+ Caused by:
1201
+ `crate_type` is unsupported as of the 2024 edition; instead use `crate-type`
1202
+ (in the `foo` binary target)
1197
1203
" ,
1198
1204
)
1199
1205
. run ( ) ;
@@ -1223,6 +1229,7 @@ fn bin_crate_type2_conflict() {
1223
1229
p. cargo ( "check" )
1224
1230
. with_stderr (
1225
1231
"\
1232
+ [WARNING] `crate_type` is redundant with `crate-type`, preferring `crate-type` in the `foo` binary target
1226
1233
[CHECKING] foo v0.5.0 ([CWD])
1227
1234
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [..]s
1228
1235
" ,
@@ -2057,6 +2064,8 @@ fn bin_proc_macro2() {
2057
2064
foo. cargo ( "check" )
2058
2065
. with_stderr (
2059
2066
"\
2067
+ [WARNING] `proc_macro` is deprecated in favor of `proc-macro` and will not work in the 2024 edition
2068
+ (in the `foo` binary target)
2060
2069
[CHECKING] foo v0.5.0 ([CWD])
2061
2070
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [..]s
2062
2071
" ,
@@ -2075,7 +2084,7 @@ fn bin_proc_macro2_2024() {
2075
2084
[package]
2076
2085
name = "foo"
2077
2086
version = "0.5.0"
2078
- edition = "2015 "
2087
+ edition = "2024 "
2079
2088
authors = ["wycats@example.com"]
2080
2089
2081
2090
[[bin]]
@@ -2089,10 +2098,14 @@ fn bin_proc_macro2_2024() {
2089
2098
2090
2099
foo. cargo ( "check" )
2091
2100
. masquerade_as_nightly_cargo ( & [ "edition2024" ] )
2101
+ . with_status ( 101 )
2092
2102
. with_stderr (
2093
2103
"\
2094
- [CHECKING] foo v0.5.0 ([CWD])
2095
- [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [..]s
2104
+ [ERROR] failed to parse manifest at `[CWD]/Cargo.toml`
2105
+
2106
+ Caused by:
2107
+ `proc_macro` is unsupported as of the 2024 edition; instead use `proc-macro`
2108
+ (in the `foo` binary target)
2096
2109
" ,
2097
2110
)
2098
2111
. run ( ) ;
@@ -2123,6 +2136,7 @@ fn bin_proc_macro2_conflict() {
2123
2136
foo. cargo ( "check" )
2124
2137
. with_stderr (
2125
2138
"\
2139
+ [WARNING] `proc_macro` is redundant with `proc-macro`, preferring `proc-macro` in the `foo` binary target
2126
2140
[CHECKING] foo v0.5.0 ([CWD])
2127
2141
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [..]s
2128
2142
" ,
0 commit comments