@@ -39,13 +39,13 @@ fn override_simple() {
39
39
)
40
40
. build ( ) ;
41
41
42
- p. cargo ( "build " )
42
+ p. cargo ( "check " )
43
43
. with_stderr (
44
44
"\
45
45
[UPDATING] `dummy-registry` index
46
46
[UPDATING] git repository `[..]`
47
- [COMPILING ] bar v0.1.0 (file://[..])
48
- [COMPILING ] foo v0.0.1 ([CWD])
47
+ [CHECKING ] bar v0.1.0 (file://[..])
48
+ [CHECKING ] foo v0.0.1 ([CWD])
49
49
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
50
50
" ,
51
51
)
@@ -86,15 +86,15 @@ fn override_with_features() {
86
86
)
87
87
. build ( ) ;
88
88
89
- p. cargo ( "build " )
89
+ p. cargo ( "check " )
90
90
. with_stderr (
91
91
"\
92
92
[UPDATING] [..] index
93
93
[UPDATING] git repository `[..]`
94
94
[WARNING] replacement for `bar` uses the features mechanism. default-features and features \
95
95
will not take effect because the replacement dependency does not support this mechanism
96
- [COMPILING ] bar v0.1.0 (file://[..])
97
- [COMPILING ] foo v0.0.1 ([CWD])
96
+ [CHECKING ] bar v0.1.0 (file://[..])
97
+ [CHECKING ] foo v0.0.1 ([CWD])
98
98
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
99
99
" ,
100
100
)
@@ -135,15 +135,15 @@ fn override_with_setting_default_features() {
135
135
)
136
136
. build ( ) ;
137
137
138
- p. cargo ( "build " )
138
+ p. cargo ( "check " )
139
139
. with_stderr (
140
140
"\
141
141
[UPDATING] [..] index
142
142
[UPDATING] git repository `[..]`
143
143
[WARNING] replacement for `bar` uses the features mechanism. default-features and features \
144
144
will not take effect because the replacement dependency does not support this mechanism
145
- [COMPILING ] bar v0.1.0 (file://[..])
146
- [COMPILING ] foo v0.0.1 ([CWD])
145
+ [CHECKING ] bar v0.1.0 (file://[..])
146
+ [CHECKING ] foo v0.0.1 ([CWD])
147
147
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
148
148
" ,
149
149
)
@@ -171,7 +171,7 @@ fn missing_version() {
171
171
. file ( "src/lib.rs" , "" )
172
172
. build ( ) ;
173
173
174
- p. cargo ( "build " )
174
+ p. cargo ( "check " )
175
175
. with_status ( 101 )
176
176
. with_stderr (
177
177
"\
@@ -205,7 +205,7 @@ fn invalid_semver_version() {
205
205
. file ( "src/lib.rs" , "" )
206
206
. build ( ) ;
207
207
208
- p. cargo ( "build " )
208
+ p. cargo ( "check " )
209
209
. with_status ( 101 )
210
210
. with_stderr_contains (
211
211
"\
@@ -242,7 +242,7 @@ fn different_version() {
242
242
. file ( "src/lib.rs" , "" )
243
243
. build ( ) ;
244
244
245
- p. cargo ( "build " )
245
+ p. cargo ( "check " )
246
246
. with_status ( 101 )
247
247
. with_stderr (
248
248
"\
@@ -290,22 +290,22 @@ fn transitive() {
290
290
. file ( "src/lib.rs" , "" )
291
291
. build ( ) ;
292
292
293
- p. cargo ( "build " )
293
+ p. cargo ( "check " )
294
294
. with_stderr (
295
295
"\
296
296
[UPDATING] `dummy-registry` index
297
297
[UPDATING] git repository `[..]`
298
298
[DOWNLOADING] crates ...
299
299
[DOWNLOADED] baz v0.2.0 (registry [..])
300
- [COMPILING ] bar v0.1.0 (file://[..])
301
- [COMPILING ] baz v0.2.0
302
- [COMPILING ] foo v0.0.1 ([CWD])
300
+ [CHECKING ] bar v0.1.0 (file://[..])
301
+ [CHECKING ] baz v0.2.0
302
+ [CHECKING ] foo v0.0.1 ([CWD])
303
303
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
304
304
" ,
305
305
)
306
306
. run ( ) ;
307
307
308
- p. cargo ( "build " ) . with_stdout ( "" ) . run ( ) ;
308
+ p. cargo ( "check " ) . with_stdout ( "" ) . run ( ) ;
309
309
}
310
310
311
311
#[ cargo_test]
@@ -342,19 +342,19 @@ fn persists_across_rebuilds() {
342
342
)
343
343
. build ( ) ;
344
344
345
- p. cargo ( "build " )
345
+ p. cargo ( "check " )
346
346
. with_stderr (
347
347
"\
348
348
[UPDATING] `dummy-registry` index
349
349
[UPDATING] git repository `file://[..]`
350
- [COMPILING ] bar v0.1.0 (file://[..])
351
- [COMPILING ] foo v0.0.1 ([CWD])
350
+ [CHECKING ] bar v0.1.0 (file://[..])
351
+ [CHECKING ] foo v0.0.1 ([CWD])
352
352
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
353
353
" ,
354
354
)
355
355
. run ( ) ;
356
356
357
- p. cargo ( "build " ) . with_stdout ( "" ) . run ( ) ;
357
+ p. cargo ( "check " ) . with_stdout ( "" ) . run ( ) ;
358
358
}
359
359
360
360
#[ cargo_test]
@@ -389,12 +389,12 @@ fn replace_registry_with_path() {
389
389
)
390
390
. build ( ) ;
391
391
392
- p. cargo ( "build " )
392
+ p. cargo ( "check " )
393
393
. with_stderr (
394
394
"\
395
395
[UPDATING] `dummy-registry` index
396
- [COMPILING ] bar v0.1.0 ([ROOT][..]/bar)
397
- [COMPILING ] foo v0.0.1 ([CWD])
396
+ [CHECKING ] bar v0.1.0 ([ROOT][..]/bar)
397
+ [CHECKING ] foo v0.0.1 ([CWD])
398
398
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
399
399
" ,
400
400
)
@@ -454,18 +454,18 @@ fn use_a_spec_to_select() {
454
454
)
455
455
. build ( ) ;
456
456
457
- p. cargo ( "build " )
457
+ p. cargo ( "check " )
458
458
. with_stderr (
459
459
"\
460
460
[UPDATING] `dummy-registry` index
461
461
[UPDATING] git repository `[..]`
462
462
[DOWNLOADING] crates ...
463
463
[DOWNLOADED] [..]
464
464
[DOWNLOADED] [..]
465
- [COMPILING ] [..]
466
- [COMPILING ] [..]
467
- [COMPILING ] [..]
468
- [COMPILING ] foo v0.0.1 ([CWD])
465
+ [CHECKING ] [..]
466
+ [CHECKING ] [..]
467
+ [CHECKING ] [..]
468
+ [CHECKING ] foo v0.0.1 ([CWD])
469
469
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
470
470
" ,
471
471
)
@@ -515,22 +515,22 @@ fn override_adds_some_deps() {
515
515
. file ( "src/lib.rs" , "" )
516
516
. build ( ) ;
517
517
518
- p. cargo ( "build " )
518
+ p. cargo ( "check " )
519
519
. with_stderr (
520
520
"\
521
521
[UPDATING] `dummy-registry` index
522
522
[UPDATING] git repository `[..]`
523
523
[DOWNLOADING] crates ...
524
524
[DOWNLOADED] baz v0.1.1 (registry [..])
525
- [COMPILING ] baz v0.1.1
526
- [COMPILING ] bar v0.1.0 ([..])
527
- [COMPILING ] foo v0.0.1 ([CWD])
525
+ [CHECKING ] baz v0.1.1
526
+ [CHECKING ] bar v0.1.0 ([..])
527
+ [CHECKING ] foo v0.0.1 ([CWD])
528
528
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
529
529
" ,
530
530
)
531
531
. run ( ) ;
532
532
533
- p. cargo ( "build " ) . with_stdout ( "" ) . run ( ) ;
533
+ p. cargo ( "check " ) . with_stdout ( "" ) . run ( ) ;
534
534
535
535
Package :: new ( "baz" , "0.1.2" ) . publish ( ) ;
536
536
p. cargo ( "update -p" )
@@ -550,7 +550,7 @@ fn override_adds_some_deps() {
550
550
)
551
551
. run ( ) ;
552
552
553
- p. cargo ( "build " ) . with_stdout ( "" ) . run ( ) ;
553
+ p. cargo ( "check " ) . with_stdout ( "" ) . run ( ) ;
554
554
}
555
555
556
556
#[ cargo_test]
@@ -599,10 +599,10 @@ fn locked_means_locked_yes_no_seriously_i_mean_locked() {
599
599
. file ( "src/lib.rs" , "" )
600
600
. build ( ) ;
601
601
602
- p. cargo ( "build " ) . run ( ) ;
602
+ p. cargo ( "check " ) . run ( ) ;
603
603
604
- p. cargo ( "build " ) . with_stdout ( "" ) . run ( ) ;
605
- p. cargo ( "build " ) . with_stdout ( "" ) . run ( ) ;
604
+ p. cargo ( "check " ) . with_stdout ( "" ) . run ( ) ;
605
+ p. cargo ( "check " ) . with_stdout ( "" ) . run ( ) ;
606
606
}
607
607
608
608
#[ cargo_test]
@@ -636,7 +636,7 @@ fn override_wrong_name() {
636
636
. file ( "src/lib.rs" , "" )
637
637
. build ( ) ;
638
638
639
- p. cargo ( "build " )
639
+ p. cargo ( "check " )
640
640
. with_status ( 101 )
641
641
. with_stderr (
642
642
"\
@@ -683,7 +683,7 @@ fn override_with_nothing() {
683
683
. file ( "src/lib.rs" , "" )
684
684
. build ( ) ;
685
685
686
- p. cargo ( "build " )
686
+ p. cargo ( "check " )
687
687
. with_status ( 101 )
688
688
. with_stderr (
689
689
"\
@@ -722,7 +722,7 @@ fn override_wrong_version() {
722
722
. file ( "src/lib.rs" , "" )
723
723
. build ( ) ;
724
724
725
- p. cargo ( "build " )
725
+ p. cargo ( "check " )
726
726
. with_status ( 101 )
727
727
. with_stderr (
728
728
"\
@@ -769,7 +769,7 @@ fn multiple_specs() {
769
769
. file ( "src/lib.rs" , "" )
770
770
. build ( ) ;
771
771
772
- p. cargo ( "build " )
772
+ p. cargo ( "check " )
773
773
. with_status ( 101 )
774
774
. with_stderr (
775
775
"\
@@ -919,7 +919,7 @@ fn no_override_self() {
919
919
. file ( "src/lib.rs" , "#![no_std] pub extern crate near;" )
920
920
. build ( ) ;
921
921
922
- p. cargo ( "build --verbose" ) . run ( ) ;
922
+ p. cargo ( "check --verbose" ) . run ( ) ;
923
923
}
924
924
925
925
#[ cargo_test]
@@ -1029,7 +1029,7 @@ fn override_an_override() {
1029
1029
. file ( "serde/src/lib.rs" , "pub fn serde08_override() {}" )
1030
1030
. build ( ) ;
1031
1031
1032
- p. cargo ( "build -v" ) . run ( ) ;
1032
+ p. cargo ( "check -v" ) . run ( ) ;
1033
1033
}
1034
1034
1035
1035
#[ cargo_test]
@@ -1078,8 +1078,8 @@ fn overriding_nonexistent_no_spurious() {
1078
1078
. file ( "src/lib.rs" , "" )
1079
1079
. build ( ) ;
1080
1080
1081
- p. cargo ( "build " ) . run ( ) ;
1082
- p. cargo ( "build " )
1081
+ p. cargo ( "check " ) . run ( ) ;
1082
+ p. cargo ( "check " )
1083
1083
. with_stderr (
1084
1084
"\
1085
1085
[WARNING] package replacement is not used: [..]baz@0.1.0
@@ -1127,24 +1127,24 @@ fn no_warnings_when_replace_is_used_in_another_workspace_member() {
1127
1127
. file ( "local_bar/src/lib.rs" , "" )
1128
1128
. build ( ) ;
1129
1129
1130
- p. cargo ( "build " )
1130
+ p. cargo ( "check " )
1131
1131
. cwd ( "first_crate" )
1132
1132
. with_stdout ( "" )
1133
1133
. with_stderr (
1134
1134
"\
1135
1135
[UPDATING] `[..]` index
1136
- [COMPILING ] bar v0.1.0 ([..])
1137
- [COMPILING ] first_crate v0.1.0 ([..])
1136
+ [CHECKING ] bar v0.1.0 ([..])
1137
+ [CHECKING ] first_crate v0.1.0 ([..])
1138
1138
[FINISHED] [..]" ,
1139
1139
)
1140
1140
. run ( ) ;
1141
1141
1142
- p. cargo ( "build " )
1142
+ p. cargo ( "check " )
1143
1143
. cwd ( "second_crate" )
1144
1144
. with_stdout ( "" )
1145
1145
. with_stderr (
1146
1146
"\
1147
- [COMPILING ] second_crate v0.1.0 ([..])
1147
+ [CHECKING ] second_crate v0.1.0 ([..])
1148
1148
[FINISHED] [..]" ,
1149
1149
)
1150
1150
. run ( ) ;
@@ -1192,7 +1192,7 @@ fn replace_to_path_dep() {
1192
1192
. file ( "bar/baz/src/lib.rs" , "pub fn baz() {}" )
1193
1193
. build ( ) ;
1194
1194
1195
- p. cargo ( "build " ) . run ( ) ;
1195
+ p. cargo ( "check " ) . run ( ) ;
1196
1196
}
1197
1197
1198
1198
#[ cargo_test]
@@ -1293,7 +1293,7 @@ fn override_plus_dep() {
1293
1293
. file ( "bar/src/lib.rs" , "" )
1294
1294
. build ( ) ;
1295
1295
1296
- p. cargo ( "build " )
1296
+ p. cargo ( "check " )
1297
1297
. with_status ( 101 )
1298
1298
. with_stderr_contains ( "error: cyclic package dependency: [..]" )
1299
1299
. run ( ) ;
0 commit comments