Skip to content

Commit a726b8d

Browse files
committed
chore: update proc_macro tests to use check
1 parent 341c400 commit a726b8d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/testsuite/proc_macro.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ fn probe_cfg_before_crate_type_discovery() {
5858
)
5959
.build();
6060

61-
p.cargo("build").run();
61+
p.cargo("check").run();
6262
}
6363

6464
#[cargo_test]
@@ -117,8 +117,8 @@ fn noop() {
117117
)
118118
.build();
119119

120-
p.cargo("build").run();
121-
p.cargo("build").run();
120+
p.cargo("check").run();
121+
p.cargo("check").run();
122122
}
123123

124124
#[cargo_test]
@@ -242,7 +242,7 @@ fn plugin_and_proc_macro() {
242242
.build();
243243

244244
let msg = " `lib.plugin` and `lib.proc-macro` cannot both be `true`";
245-
p.cargo("build")
245+
p.cargo("check")
246246
.with_status(101)
247247
.with_stderr_contains(msg)
248248
.run();
@@ -375,7 +375,7 @@ fn proc_macro_crate_type_warning() {
375375
.file("src/lib.rs", "")
376376
.build();
377377

378-
foo.cargo("build")
378+
foo.cargo("check")
379379
.with_stderr_contains(
380380
"[WARNING] library `foo` should only specify `proc-macro = true` instead of setting `crate-type`")
381381
.run();
@@ -398,7 +398,7 @@ fn proc_macro_conflicting_warning() {
398398
.file("src/lib.rs", "")
399399
.build();
400400

401-
foo.cargo("build")
401+
foo.cargo("check")
402402
.with_stderr_contains(
403403
"[WARNING] conflicting between `proc-macro` and `proc_macro` in the `foo` library target.\n
404404
`proc_macro` is ignored and not recommended for use in the future",
@@ -423,7 +423,7 @@ fn proc_macro_crate_type_warning_plugin() {
423423
.file("src/lib.rs", "")
424424
.build();
425425

426-
foo.cargo("build")
426+
foo.cargo("check")
427427
.with_stderr_contains(
428428
"[WARNING] proc-macro library `foo` should not specify `plugin = true`")
429429
.with_stderr_contains(
@@ -447,7 +447,7 @@ fn proc_macro_crate_type_multiple() {
447447
.file("src/lib.rs", "")
448448
.build();
449449

450-
foo.cargo("build")
450+
foo.cargo("check")
451451
.with_stderr(
452452
"\
453453
[ERROR] failed to parse manifest at `[..]/foo/Cargo.toml`

0 commit comments

Comments
 (0)