Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cottinisimone committed May 14, 2024
1 parent 5484f9e commit 2cc0ef2
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace]

resolver = "2"
members = [
"positional",
"positional_derive",
Expand Down
1 change: 0 additions & 1 deletion positional_derive/src/analyze/variant.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use proc_macro_error::abort;
use syn::spanned::Spanned;
use syn::{Expr, Fields};

const MATCHER_ATTRIBUTE: &str = "matcher";
Expand Down
4 changes: 2 additions & 2 deletions positional_derive/tests/ui/enums-with-wrong-matcher.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ error: expected an expression as matcher

= help: example syntax: `#[matcher(row[0..2] == "00")]`

--> tests/ui/enums-with-wrong-matcher.rs:5:14
--> tests/ui/enums-with-wrong-matcher.rs:5:15
|
5 | #[matcher(struct)]
| ^^^^^^^^
| ^^^^^^
8 changes: 4 additions & 4 deletions positional_derive/tests/ui/list-attributes.stderr
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
error: wrong field configuration
error: failed to parse field attribute

= help: there should only be name = value couple inside the field configuration
= note: unsupported attribute

--> tests/ui/list-attributes.rs:5:13
--> tests/ui/list-attributes.rs:5:5
|
5 | #[field(a)]
| ^
| ^^^^^^^^^^^
8 changes: 4 additions & 4 deletions positional_derive/tests/ui/path-attributes.stderr
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
error: wrong field configuration
error: failed to parse field attribute

= help: there should only be name = value couple inside the field configuration
= note: expected attribute arguments in parentheses: #[field(...)]

--> tests/ui/path-attributes.rs:5:7
--> tests/ui/path-attributes.rs:5:5
|
5 | #[field]
| ^^^^^
| ^^^^^^^^
4 changes: 2 additions & 2 deletions positional_derive/tests/ui/wrong-filler-type.stderr
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
error: wrong field configuration
error: failed to parse field attribute

= help: the filler configuration should be a char
= note: expected character literal

--> tests/ui/wrong-filler-type.rs:5:5
|
Expand Down

0 comments on commit 2cc0ef2

Please sign in to comment.