Skip to content

Commit f023513

Browse files
committed
Move #![crate_type] UI tests into attributes directory
Gets rid of two top-level UI tests which is always great. Furthermore, move `need-crate-arg-ignore-tidy$x.rs` from `command/` to `invalid-compile-flags/`. `command/` concerns `std::process::Command` tests, not CLI tests.
1 parent 967b6b4 commit f023513

8 files changed

+3
-3
lines changed
File renamed without changes.

Diff for: tests/ui/invalid_crate_type_syntax.stderr renamed to tests/ui/attributes/crate-type-delimited.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: malformed `crate_type` attribute input
2-
--> $DIR/invalid_crate_type_syntax.rs:2:1
2+
--> $DIR/crate-type-delimited.rs:2:1
33
|
44
LL | #![crate_type(lib)]
55
| ^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#![crate_type = "bin|lib|..."]`
File renamed without changes.

Diff for: tests/ui/no_crate_type.stderr renamed to tests/ui/attributes/crate-type-empty.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: malformed `crate_type` attribute input
2-
--> $DIR/no_crate_type.rs:2:1
2+
--> $DIR/crate-type-empty.rs:2:1
33
|
44
LL | #![crate_type]
55
| ^^^^^^^^^^^^^^ help: must be of the form: `#![crate_type = "bin|lib|..."]`

Diff for: tests/ui/invalid/invalid-crate-type-macro.stderr renamed to tests/ui/attributes/crate-type-macro-call.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: malformed `crate_type` attribute input
2-
--> $DIR/invalid-crate-type-macro.rs:1:1
2+
--> $DIR/crate-type-macro-call.rs:1:1
33
|
44
LL | #![crate_type = foo!()]
55
| ^^^^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#![crate_type = "bin|lib|..."]`

0 commit comments

Comments
 (0)