Skip to content

Commit 6c7725a

Browse files
committed
Ui tests with compile_error resolved at call site
1 parent a2a05d0 commit 6c7725a

6 files changed

+30
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
error: expected `builder(each = "...")`
22
--> tests/08-unrecognized-attribute.rs:22:7
33
|
4+
19 | #[derive(Builder)]
5+
| ------- in this derive macro expansion
6+
...
47
22 | #[builder(eac = "arg")]
58
| ^^^^^^^^^^^^^^^^^^^^
9+
|
10+
= note: this error originates in the derive macro `Builder` (in Nightly builds, run with -Z macro-backtrace for more info)

sorted/tests/03-out-of-order.stderr

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
error: SomethingFailed should sort before ThatFailed
22
--> tests/03-out-of-order.rs:20:5
33
|
4+
16 | #[sorted]
5+
| --------- in this procedural macro expansion
6+
...
47
20 | SomethingFailed,
58
| ^^^^^^^^^^^^^^^
9+
|
10+
= note: this error originates in the attribute macro `sorted` (in Nightly builds, run with -Z macro-backtrace for more info)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
error: Dyn should sort before Fmt
22
--> tests/04-variants-with-data.rs:19:5
33
|
4+
13 | #[sorted]
5+
| --------- in this procedural macro expansion
6+
...
47
19 | Dyn(Box<dyn StdError>),
58
| ^^^
9+
|
10+
= note: this error originates in the attribute macro `sorted` (in Nightly builds, run with -Z macro-backtrace for more info)

sorted/tests/05-match-expr.stderr

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
error: Fmt should sort before Io
22
--> tests/05-match-expr.rs:88:13
33
|
4+
81 | #[sorted::check]
5+
| ---------------- in this procedural macro expansion
6+
...
47
88 | Fmt(e) => write!(f, "{}", e),
58
| ^^^
9+
|
10+
= note: this error originates in the attribute macro `sorted::check` (in Nightly builds, run with -Z macro-backtrace for more info)

sorted/tests/06-pattern-path.stderr

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
error: Error::Fmt should sort before Error::Io
22
--> tests/06-pattern-path.rs:33:13
33
|
4+
28 | #[sorted::check]
5+
| ---------------- in this procedural macro expansion
6+
...
47
33 | Error::Fmt(e) => write!(f, "{}", e),
58
| ^^^^^^^^^^
9+
|
10+
= note: this error originates in the attribute macro `sorted::check` (in Nightly builds, run with -Z macro-backtrace for more info)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
error: unsupported by #[sorted]
22
--> tests/07-unrecognized-pattern.rs:12:9
33
|
4+
8 | #[sorted::check]
5+
| ---------------- in this procedural macro expansion
6+
...
47
12 | [] => Some(0),
58
| ^^
9+
|
10+
= note: this error originates in the attribute macro `sorted::check` (in Nightly builds, run with -Z macro-backtrace for more info)

0 commit comments

Comments
 (0)