Skip to content

Commit 1b9af48

Browse files
committed
chore: update pub_priv tests to use check
1 parent 41738be commit 1b9af48

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/testsuite/pub_priv.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ fn exported_priv_warning() {
3232
)
3333
.build();
3434

35-
p.cargo("build --message-format=short")
35+
p.cargo("check --message-format=short")
3636
.masquerade_as_nightly_cargo(&["public-dependency"])
3737
.with_stderr_contains(
3838
"\
@@ -71,15 +71,15 @@ fn exported_pub_dep() {
7171
)
7272
.build();
7373

74-
p.cargo("build --message-format=short")
74+
p.cargo("check --message-format=short")
7575
.masquerade_as_nightly_cargo(&["public-dependency"])
7676
.with_stderr(
7777
"\
7878
[UPDATING] `[..]` index
7979
[DOWNLOADING] crates ...
8080
[DOWNLOADED] pub_dep v0.1.0 ([..])
81-
[COMPILING] pub_dep v0.1.0
82-
[COMPILING] foo v0.0.1 ([CWD])
81+
[CHECKING] pub_dep v0.1.0
82+
[CHECKING] foo v0.0.1 ([CWD])
8383
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
8484
",
8585
)
@@ -98,7 +98,7 @@ pub fn requires_nightly_cargo() {
9898
.file("src/lib.rs", "")
9999
.build();
100100

101-
p.cargo("build --message-format=short")
101+
p.cargo("check --message-format=short")
102102
.with_status(101)
103103
.with_stderr(
104104
"\
@@ -134,7 +134,7 @@ fn requires_feature() {
134134
.file("src/lib.rs", "")
135135
.build();
136136

137-
p.cargo("build --message-format=short")
137+
p.cargo("check --message-format=short")
138138
.masquerade_as_nightly_cargo(&["public-dependency"])
139139
.with_status(101)
140140
.with_stderr(
@@ -184,7 +184,7 @@ fn pub_dev_dependency() {
184184
)
185185
.build();
186186

187-
p.cargo("build --message-format=short")
187+
p.cargo("check --message-format=short")
188188
.masquerade_as_nightly_cargo(&["public-dependency"])
189189
.with_status(101)
190190
.with_stderr(

0 commit comments

Comments
 (0)