@@ -58,7 +58,7 @@ fn probe_cfg_before_crate_type_discovery() {
58
58
)
59
59
. build ( ) ;
60
60
61
- p. cargo ( "build " ) . run ( ) ;
61
+ p. cargo ( "check " ) . run ( ) ;
62
62
}
63
63
64
64
#[ cargo_test]
@@ -117,8 +117,8 @@ fn noop() {
117
117
)
118
118
. build ( ) ;
119
119
120
- p. cargo ( "build " ) . run ( ) ;
121
- p. cargo ( "build " ) . run ( ) ;
120
+ p. cargo ( "check " ) . run ( ) ;
121
+ p. cargo ( "check " ) . run ( ) ;
122
122
}
123
123
124
124
#[ cargo_test]
@@ -242,7 +242,7 @@ fn plugin_and_proc_macro() {
242
242
. build ( ) ;
243
243
244
244
let msg = " `lib.plugin` and `lib.proc-macro` cannot both be `true`" ;
245
- p. cargo ( "build " )
245
+ p. cargo ( "check " )
246
246
. with_status ( 101 )
247
247
. with_stderr_contains ( msg)
248
248
. run ( ) ;
@@ -375,7 +375,7 @@ fn proc_macro_crate_type_warning() {
375
375
. file ( "src/lib.rs" , "" )
376
376
. build ( ) ;
377
377
378
- foo. cargo ( "build " )
378
+ foo. cargo ( "check " )
379
379
. with_stderr_contains (
380
380
"[WARNING] library `foo` should only specify `proc-macro = true` instead of setting `crate-type`" )
381
381
. run ( ) ;
@@ -398,7 +398,7 @@ fn proc_macro_conflicting_warning() {
398
398
. file ( "src/lib.rs" , "" )
399
399
. build ( ) ;
400
400
401
- foo. cargo ( "build " )
401
+ foo. cargo ( "check " )
402
402
. with_stderr_contains (
403
403
"[WARNING] conflicting between `proc-macro` and `proc_macro` in the `foo` library target.\n
404
404
`proc_macro` is ignored and not recommended for use in the future" ,
@@ -423,7 +423,7 @@ fn proc_macro_crate_type_warning_plugin() {
423
423
. file ( "src/lib.rs" , "" )
424
424
. build ( ) ;
425
425
426
- foo. cargo ( "build " )
426
+ foo. cargo ( "check " )
427
427
. with_stderr_contains (
428
428
"[WARNING] proc-macro library `foo` should not specify `plugin = true`" )
429
429
. with_stderr_contains (
@@ -447,7 +447,7 @@ fn proc_macro_crate_type_multiple() {
447
447
. file ( "src/lib.rs" , "" )
448
448
. build ( ) ;
449
449
450
- foo. cargo ( "build " )
450
+ foo. cargo ( "check " )
451
451
. with_stderr (
452
452
"\
453
453
[ERROR] failed to parse manifest at `[..]/foo/Cargo.toml`
0 commit comments