@@ -20,8 +20,8 @@ fn rust_version_satisfied() {
20
20
. file ( "src/main.rs" , "fn main() {}" )
21
21
. build ( ) ;
22
22
23
- p. cargo ( "build " ) . run ( ) ;
24
- p. cargo ( "build --ignore-rust-version" ) . run ( ) ;
23
+ p. cargo ( "check " ) . run ( ) ;
24
+ p. cargo ( "check --ignore-rust-version" ) . run ( ) ;
25
25
}
26
26
27
27
#[ cargo_test]
@@ -41,7 +41,7 @@ fn rust_version_bad_caret() {
41
41
)
42
42
. file ( "src/main.rs" , "fn main() {}" )
43
43
. build ( )
44
- . cargo ( "build " )
44
+ . cargo ( "check " )
45
45
. with_status ( 101 )
46
46
. with_stderr (
47
47
"error: failed to parse manifest at `[..]`\n \n \
@@ -67,7 +67,7 @@ fn rust_version_bad_pre_release() {
67
67
)
68
68
. file ( "src/main.rs" , "fn main() {}" )
69
69
. build ( )
70
- . cargo ( "build " )
70
+ . cargo ( "check " )
71
71
. with_status ( 101 )
72
72
. with_stderr (
73
73
"error: failed to parse manifest at `[..]`\n \n \
@@ -93,7 +93,7 @@ fn rust_version_bad_nonsense() {
93
93
)
94
94
. file ( "src/main.rs" , "fn main() {}" )
95
95
. build ( )
96
- . cargo ( "build " )
96
+ . cargo ( "check " )
97
97
. with_status ( 101 )
98
98
. with_stderr (
99
99
"error: failed to parse manifest at `[..]`\n \n \
@@ -120,14 +120,14 @@ fn rust_version_too_high() {
120
120
. file ( "src/main.rs" , "fn main() {}" )
121
121
. build ( ) ;
122
122
123
- p. cargo ( "build " )
123
+ p. cargo ( "check " )
124
124
. with_status ( 101 )
125
125
. with_stderr (
126
126
"error: package `foo v0.0.1 ([..])` cannot be built because it requires \
127
127
rustc 1.9876.0 or newer, while the currently active rustc version is [..]\n \n ",
128
128
)
129
129
. run ( ) ;
130
- p. cargo ( "build --ignore-rust-version" ) . run ( ) ;
130
+ p. cargo ( "check --ignore-rust-version" ) . run ( ) ;
131
131
}
132
132
133
133
#[ cargo_test]
@@ -152,7 +152,7 @@ fn rust_version_dependency_fails() {
152
152
. file ( "src/main.rs" , "fn main(){}" )
153
153
. build ( ) ;
154
154
155
- p. cargo ( "build " )
155
+ p. cargo ( "check " )
156
156
. with_status ( 101 )
157
157
. with_stderr (
158
158
" Updating `[..]` index\n \
@@ -165,7 +165,7 @@ fn rust_version_dependency_fails() {
165
165
where `ver` is the latest version of `bar` supporting rustc [..]",
166
166
)
167
167
. run ( ) ;
168
- p. cargo ( "build --ignore-rust-version" ) . run ( ) ;
168
+ p. cargo ( "check --ignore-rust-version" ) . run ( ) ;
169
169
}
170
170
171
171
#[ cargo_test]
@@ -186,7 +186,7 @@ fn rust_version_older_than_edition() {
186
186
)
187
187
. file ( "src/main.rs" , "fn main() {}" )
188
188
. build ( )
189
- . cargo ( "build " )
189
+ . cargo ( "check " )
190
190
. with_status ( 101 )
191
191
. with_stderr_contains ( " rust-version 1.1 is older than first version (1.31.0) required by the specified edition (2018)" ,
192
192
)
0 commit comments