From efbe574209a0147ede83c9169dfdfa55bbb96c37 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Thu, 7 Oct 2021 00:56:29 -0400 Subject: [PATCH] Update ui test files --- test_suite/tests/ui/borrow/bad_lifetimes.stderr | 2 +- test_suite/tests/ui/borrow/duplicate_lifetime.stderr | 2 +- test_suite/tests/ui/borrow/duplicate_variant.stderr | 2 +- test_suite/tests/ui/borrow/empty_lifetimes.stderr | 2 +- test_suite/tests/ui/borrow/no_lifetimes.stderr | 2 +- test_suite/tests/ui/borrow/struct_variant.stderr | 2 +- test_suite/tests/ui/borrow/wrong_lifetime.stderr | 2 +- test_suite/tests/ui/conflict/adjacent-tag.stderr | 2 +- test_suite/tests/ui/conflict/flatten-newtype-struct.stderr | 2 +- test_suite/tests/ui/conflict/flatten-tuple-struct.stderr | 2 +- test_suite/tests/ui/conflict/from-try-from.stderr | 2 +- test_suite/tests/ui/conflict/internal-tag-alias.stderr | 2 +- test_suite/tests/ui/conflict/internal-tag.stderr | 2 +- test_suite/tests/ui/default-attribute/enum.stderr | 2 +- test_suite/tests/ui/default-attribute/enum_path.stderr | 2 +- .../ui/default-attribute/nameless_struct_fields.stderr | 2 +- .../ui/default-attribute/nameless_struct_fields_path.stderr | 2 +- .../tests/ui/duplicate-attribute/rename-and-ser.stderr | 2 +- .../ui/duplicate-attribute/rename-ser-rename-ser.stderr | 2 +- .../tests/ui/duplicate-attribute/rename-ser-rename.stderr | 2 +- .../tests/ui/duplicate-attribute/rename-ser-ser.stderr | 2 +- .../tests/ui/duplicate-attribute/two-rename-ser.stderr | 2 +- .../ui/duplicate-attribute/with-and-serialize-with.stderr | 2 +- .../tests/ui/enum-representation/content-no-tag.stderr | 2 +- .../ui/enum-representation/internal-tuple-variant.stderr | 2 +- .../ui/enum-representation/untagged-and-adjacent.stderr | 6 +++--- .../ui/enum-representation/untagged-and-content.stderr | 4 ++-- .../ui/enum-representation/untagged-and-internal.stderr | 4 ++-- .../tests/ui/enum-representation/untagged-struct.stderr | 2 +- test_suite/tests/ui/expected-string/boolean.stderr | 2 +- test_suite/tests/ui/expected-string/byte_character.stderr | 2 +- test_suite/tests/ui/expected-string/byte_string.stderr | 2 +- test_suite/tests/ui/expected-string/character.stderr | 2 +- test_suite/tests/ui/expected-string/float.stderr | 2 +- test_suite/tests/ui/expected-string/integer.stderr | 2 +- test_suite/tests/ui/identifier/both.stderr | 4 ++-- test_suite/tests/ui/identifier/field_struct.stderr | 2 +- test_suite/tests/ui/identifier/field_tuple.stderr | 2 +- test_suite/tests/ui/identifier/newtype_not_last.stderr | 2 +- test_suite/tests/ui/identifier/not_unit.stderr | 2 +- test_suite/tests/ui/identifier/other_not_last.stderr | 2 +- test_suite/tests/ui/identifier/other_untagged.stderr | 2 +- test_suite/tests/ui/identifier/other_variant.stderr | 2 +- test_suite/tests/ui/identifier/variant_struct.stderr | 2 +- test_suite/tests/ui/identifier/variant_tuple.stderr | 2 +- test_suite/tests/ui/malformed/bound.stderr | 2 +- test_suite/tests/ui/malformed/cut_off.stderr | 2 +- test_suite/tests/ui/malformed/not_list.stderr | 4 ++-- test_suite/tests/ui/malformed/rename.stderr | 2 +- .../tests/ui/precondition/deserialize_de_lifetime.stderr | 2 +- test_suite/tests/ui/precondition/deserialize_dst.stderr | 2 +- .../tests/ui/precondition/serialize_field_identifier.stderr | 2 +- .../ui/precondition/serialize_variant_identifier.stderr | 2 +- test_suite/tests/ui/remote/bad_getter.stderr | 2 +- test_suite/tests/ui/remote/bad_remote.stderr | 2 +- test_suite/tests/ui/remote/enum_getter.stderr | 2 +- test_suite/tests/ui/remote/missing_field.stderr | 2 +- test_suite/tests/ui/remote/nonremote_getter.stderr | 2 +- test_suite/tests/ui/remote/unknown_field.stderr | 4 ++-- test_suite/tests/ui/remote/wrong_de.stderr | 2 +- test_suite/tests/ui/remote/wrong_getter.stderr | 2 +- test_suite/tests/ui/remote/wrong_ser.stderr | 2 +- .../tests/ui/rename/container_unknown_rename_rule.stderr | 2 +- .../tests/ui/rename/variant_unknown_rename_rule.stderr | 2 +- .../ui/struct-representation/internally-tagged-tuple.stderr | 2 +- .../ui/struct-representation/internally-tagged-unit.stderr | 2 +- test_suite/tests/ui/transparent/at_most_one.stderr | 2 +- test_suite/tests/ui/transparent/de_at_least_one.stderr | 2 +- test_suite/tests/ui/transparent/enum.stderr | 2 +- test_suite/tests/ui/transparent/ser_at_least_one.stderr | 2 +- test_suite/tests/ui/transparent/unit_struct.stderr | 2 +- test_suite/tests/ui/transparent/with_from.stderr | 2 +- test_suite/tests/ui/transparent/with_into.stderr | 2 +- test_suite/tests/ui/transparent/with_try_from.stderr | 2 +- test_suite/tests/ui/type-attribute/from.stderr | 2 +- test_suite/tests/ui/type-attribute/into.stderr | 2 +- test_suite/tests/ui/type-attribute/try_from.stderr | 2 +- test_suite/tests/ui/unexpected-literal/container.stderr | 2 +- test_suite/tests/ui/unexpected-literal/field.stderr | 2 +- test_suite/tests/ui/unexpected-literal/variant.stderr | 2 +- test_suite/tests/ui/unknown-attribute/container.stderr | 2 +- test_suite/tests/ui/unknown-attribute/field.stderr | 2 +- test_suite/tests/ui/unknown-attribute/variant.stderr | 2 +- test_suite/tests/ui/unsupported/union_de.stderr | 2 +- test_suite/tests/ui/unsupported/union_ser.stderr | 2 +- .../tests/ui/with-variant/skip_de_newtype_field.stderr | 2 +- .../tests/ui/with-variant/skip_de_struct_field.stderr | 2 +- test_suite/tests/ui/with-variant/skip_de_tuple_field.stderr | 2 +- .../tests/ui/with-variant/skip_de_whole_variant.stderr | 2 +- .../tests/ui/with-variant/skip_ser_newtype_field.stderr | 2 +- .../tests/ui/with-variant/skip_ser_newtype_field_if.stderr | 2 +- .../tests/ui/with-variant/skip_ser_struct_field.stderr | 2 +- .../tests/ui/with-variant/skip_ser_struct_field_if.stderr | 2 +- .../tests/ui/with-variant/skip_ser_tuple_field.stderr | 2 +- .../tests/ui/with-variant/skip_ser_tuple_field_if.stderr | 2 +- .../tests/ui/with-variant/skip_ser_whole_variant.stderr | 2 +- 96 files changed, 103 insertions(+), 103 deletions(-) diff --git a/test_suite/tests/ui/borrow/bad_lifetimes.stderr b/test_suite/tests/ui/borrow/bad_lifetimes.stderr index 5b298497..623cfc4f 100644 --- a/test_suite/tests/ui/borrow/bad_lifetimes.stderr +++ b/test_suite/tests/ui/borrow/bad_lifetimes.stderr @@ -1,5 +1,5 @@ error: failed to parse borrowed lifetimes: "zzz" - --> $DIR/bad_lifetimes.rs:5:22 + --> $DIR/tests/ui/borrow/bad_lifetimes.rs:5:22 | 5 | #[serde(borrow = "zzz")] | ^^^^^ diff --git a/test_suite/tests/ui/borrow/duplicate_lifetime.stderr b/test_suite/tests/ui/borrow/duplicate_lifetime.stderr index f9916fd0..f2c319ca 100644 --- a/test_suite/tests/ui/borrow/duplicate_lifetime.stderr +++ b/test_suite/tests/ui/borrow/duplicate_lifetime.stderr @@ -1,5 +1,5 @@ error: duplicate borrowed lifetime `'a` - --> $DIR/duplicate_lifetime.rs:5:22 + --> $DIR/tests/ui/borrow/duplicate_lifetime.rs:5:22 | 5 | #[serde(borrow = "'a + 'a")] | ^^^^^^^^^ diff --git a/test_suite/tests/ui/borrow/duplicate_variant.stderr b/test_suite/tests/ui/borrow/duplicate_variant.stderr index bae8e5fd..fdd8aaec 100644 --- a/test_suite/tests/ui/borrow/duplicate_variant.stderr +++ b/test_suite/tests/ui/borrow/duplicate_variant.stderr @@ -1,5 +1,5 @@ error: duplicate serde attribute `borrow` - --> $DIR/duplicate_variant.rs:8:13 + --> $DIR/tests/ui/borrow/duplicate_variant.rs:8:13 | 8 | #[serde(borrow)] | ^^^^^^ diff --git a/test_suite/tests/ui/borrow/empty_lifetimes.stderr b/test_suite/tests/ui/borrow/empty_lifetimes.stderr index 2d6f042c..3d3235f6 100644 --- a/test_suite/tests/ui/borrow/empty_lifetimes.stderr +++ b/test_suite/tests/ui/borrow/empty_lifetimes.stderr @@ -1,5 +1,5 @@ error: at least one lifetime must be borrowed - --> $DIR/empty_lifetimes.rs:5:22 + --> $DIR/tests/ui/borrow/empty_lifetimes.rs:5:22 | 5 | #[serde(borrow = "")] | ^^ diff --git a/test_suite/tests/ui/borrow/no_lifetimes.stderr b/test_suite/tests/ui/borrow/no_lifetimes.stderr index 52601e97..56d95e8d 100644 --- a/test_suite/tests/ui/borrow/no_lifetimes.stderr +++ b/test_suite/tests/ui/borrow/no_lifetimes.stderr @@ -1,5 +1,5 @@ error: field `s` has no lifetimes to borrow - --> $DIR/no_lifetimes.rs:5:5 + --> $DIR/tests/ui/borrow/no_lifetimes.rs:5:5 | 5 | / #[serde(borrow)] 6 | | s: String, diff --git a/test_suite/tests/ui/borrow/struct_variant.stderr b/test_suite/tests/ui/borrow/struct_variant.stderr index 5624d207..2ba1172e 100644 --- a/test_suite/tests/ui/borrow/struct_variant.stderr +++ b/test_suite/tests/ui/borrow/struct_variant.stderr @@ -1,5 +1,5 @@ error: #[serde(borrow)] may only be used on newtype variants - --> $DIR/struct_variant.rs:8:5 + --> $DIR/tests/ui/borrow/struct_variant.rs:8:5 | 8 | / #[serde(borrow)] 9 | | S { s: Str<'a> }, diff --git a/test_suite/tests/ui/borrow/wrong_lifetime.stderr b/test_suite/tests/ui/borrow/wrong_lifetime.stderr index f282e124..497c9e1d 100644 --- a/test_suite/tests/ui/borrow/wrong_lifetime.stderr +++ b/test_suite/tests/ui/borrow/wrong_lifetime.stderr @@ -1,5 +1,5 @@ error: field `s` does not have lifetime 'b - --> $DIR/wrong_lifetime.rs:5:5 + --> $DIR/tests/ui/borrow/wrong_lifetime.rs:5:5 | 5 | / #[serde(borrow = "'b")] 6 | | s: &'a str, diff --git a/test_suite/tests/ui/conflict/adjacent-tag.stderr b/test_suite/tests/ui/conflict/adjacent-tag.stderr index ad496795..d690b07b 100644 --- a/test_suite/tests/ui/conflict/adjacent-tag.stderr +++ b/test_suite/tests/ui/conflict/adjacent-tag.stderr @@ -1,5 +1,5 @@ error: enum tags `conflict` for type and content conflict with each other - --> $DIR/adjacent-tag.rs:4:1 + --> $DIR/tests/ui/conflict/adjacent-tag.rs:4:1 | 4 | / #[serde(tag = "conflict", content = "conflict")] 5 | | enum E { diff --git a/test_suite/tests/ui/conflict/flatten-newtype-struct.stderr b/test_suite/tests/ui/conflict/flatten-newtype-struct.stderr index aeacefb9..47ebdead 100644 --- a/test_suite/tests/ui/conflict/flatten-newtype-struct.stderr +++ b/test_suite/tests/ui/conflict/flatten-newtype-struct.stderr @@ -1,5 +1,5 @@ error: #[serde(flatten)] cannot be used on newtype structs - --> $DIR/flatten-newtype-struct.rs:6:12 + --> $DIR/tests/ui/conflict/flatten-newtype-struct.rs:6:12 | 6 | struct Foo(#[serde(flatten)] HashMap); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/test_suite/tests/ui/conflict/flatten-tuple-struct.stderr b/test_suite/tests/ui/conflict/flatten-tuple-struct.stderr index e1999344..77ed25b2 100644 --- a/test_suite/tests/ui/conflict/flatten-tuple-struct.stderr +++ b/test_suite/tests/ui/conflict/flatten-tuple-struct.stderr @@ -1,5 +1,5 @@ error: #[serde(flatten)] cannot be used on tuple structs - --> $DIR/flatten-tuple-struct.rs:6:17 + --> $DIR/tests/ui/conflict/flatten-tuple-struct.rs:6:17 | 6 | struct Foo(u32, #[serde(flatten)] HashMap); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/test_suite/tests/ui/conflict/from-try-from.stderr b/test_suite/tests/ui/conflict/from-try-from.stderr index 39dc6ce0..1326d0c0 100644 --- a/test_suite/tests/ui/conflict/from-try-from.stderr +++ b/test_suite/tests/ui/conflict/from-try-from.stderr @@ -1,5 +1,5 @@ error: #[serde(from = "...")] and #[serde(try_from = "...")] conflict with each other - --> $DIR/from-try-from.rs:4:1 + --> $DIR/tests/ui/conflict/from-try-from.rs:4:1 | 4 | / #[serde(from = "u64", try_from = "u64")] 5 | | struct S { diff --git a/test_suite/tests/ui/conflict/internal-tag-alias.stderr b/test_suite/tests/ui/conflict/internal-tag-alias.stderr index 7a57f427..707c0327 100644 --- a/test_suite/tests/ui/conflict/internal-tag-alias.stderr +++ b/test_suite/tests/ui/conflict/internal-tag-alias.stderr @@ -1,5 +1,5 @@ error: variant field name `conflict` conflicts with internal tag - --> $DIR/internal-tag-alias.rs:4:1 + --> $DIR/tests/ui/conflict/internal-tag-alias.rs:4:1 | 4 | / #[serde(tag = "conflict")] 5 | | enum E { diff --git a/test_suite/tests/ui/conflict/internal-tag.stderr b/test_suite/tests/ui/conflict/internal-tag.stderr index f1ae4579..635639bd 100644 --- a/test_suite/tests/ui/conflict/internal-tag.stderr +++ b/test_suite/tests/ui/conflict/internal-tag.stderr @@ -1,5 +1,5 @@ error: variant field name `conflict` conflicts with internal tag - --> $DIR/internal-tag.rs:4:1 + --> $DIR/tests/ui/conflict/internal-tag.rs:4:1 | 4 | / #[serde(tag = "conflict")] 5 | | enum E { diff --git a/test_suite/tests/ui/default-attribute/enum.stderr b/test_suite/tests/ui/default-attribute/enum.stderr index a3b7a027..355faaf9 100644 --- a/test_suite/tests/ui/default-attribute/enum.stderr +++ b/test_suite/tests/ui/default-attribute/enum.stderr @@ -1,5 +1,5 @@ error: #[serde(default)] can only be used on structs with named fields - --> $DIR/enum.rs:5:1 + --> $DIR/tests/ui/default-attribute/enum.rs:5:1 | 5 | enum E { | ^^^^ diff --git a/test_suite/tests/ui/default-attribute/enum_path.stderr b/test_suite/tests/ui/default-attribute/enum_path.stderr index c6523c9e..811375d9 100644 --- a/test_suite/tests/ui/default-attribute/enum_path.stderr +++ b/test_suite/tests/ui/default-attribute/enum_path.stderr @@ -1,5 +1,5 @@ error: #[serde(default = "...")] can only be used on structs with named fields - --> $DIR/enum_path.rs:5:1 + --> $DIR/tests/ui/default-attribute/enum_path.rs:5:1 | 5 | enum E { | ^^^^ diff --git a/test_suite/tests/ui/default-attribute/nameless_struct_fields.stderr b/test_suite/tests/ui/default-attribute/nameless_struct_fields.stderr index 3557946a..17e860c1 100644 --- a/test_suite/tests/ui/default-attribute/nameless_struct_fields.stderr +++ b/test_suite/tests/ui/default-attribute/nameless_struct_fields.stderr @@ -1,5 +1,5 @@ error: #[serde(default)] can only be used on structs with named fields - --> $DIR/nameless_struct_fields.rs:5:9 + --> $DIR/tests/ui/default-attribute/nameless_struct_fields.rs:5:9 | 5 | struct T(u8, u8); | ^^^^^^^^ diff --git a/test_suite/tests/ui/default-attribute/nameless_struct_fields_path.stderr b/test_suite/tests/ui/default-attribute/nameless_struct_fields_path.stderr index db5fa4b8..886c471f 100644 --- a/test_suite/tests/ui/default-attribute/nameless_struct_fields_path.stderr +++ b/test_suite/tests/ui/default-attribute/nameless_struct_fields_path.stderr @@ -1,5 +1,5 @@ error: #[serde(default = "...")] can only be used on structs with named fields - --> $DIR/nameless_struct_fields_path.rs:5:9 + --> $DIR/tests/ui/default-attribute/nameless_struct_fields_path.rs:5:9 | 5 | struct T(u8, u8); | ^^^^^^^^ diff --git a/test_suite/tests/ui/duplicate-attribute/rename-and-ser.stderr b/test_suite/tests/ui/duplicate-attribute/rename-and-ser.stderr index 34ecd735..2fffd740 100644 --- a/test_suite/tests/ui/duplicate-attribute/rename-and-ser.stderr +++ b/test_suite/tests/ui/duplicate-attribute/rename-and-ser.stderr @@ -1,5 +1,5 @@ error: unknown serde field attribute `serialize` - --> $DIR/rename-and-ser.rs:5:27 + --> $DIR/tests/ui/duplicate-attribute/rename-and-ser.rs:5:27 | 5 | #[serde(rename = "x", serialize = "y")] | ^^^^^^^^^ diff --git a/test_suite/tests/ui/duplicate-attribute/rename-ser-rename-ser.stderr b/test_suite/tests/ui/duplicate-attribute/rename-ser-rename-ser.stderr index 979f9738..c3f75c77 100644 --- a/test_suite/tests/ui/duplicate-attribute/rename-ser-rename-ser.stderr +++ b/test_suite/tests/ui/duplicate-attribute/rename-ser-rename-ser.stderr @@ -1,5 +1,5 @@ error: duplicate serde attribute `rename` - --> $DIR/rename-ser-rename-ser.rs:5:38 + --> $DIR/tests/ui/duplicate-attribute/rename-ser-rename-ser.rs:5:38 | 5 | #[serde(rename(serialize = "x"), rename(serialize = "y"))] | ^^^^^^ diff --git a/test_suite/tests/ui/duplicate-attribute/rename-ser-rename.stderr b/test_suite/tests/ui/duplicate-attribute/rename-ser-rename.stderr index 866b2372..269312b3 100644 --- a/test_suite/tests/ui/duplicate-attribute/rename-ser-rename.stderr +++ b/test_suite/tests/ui/duplicate-attribute/rename-ser-rename.stderr @@ -1,5 +1,5 @@ error: duplicate serde attribute `rename` - --> $DIR/rename-ser-rename.rs:6:13 + --> $DIR/tests/ui/duplicate-attribute/rename-ser-rename.rs:6:13 | 6 | #[serde(rename = "y")] | ^^^^^^ diff --git a/test_suite/tests/ui/duplicate-attribute/rename-ser-ser.stderr b/test_suite/tests/ui/duplicate-attribute/rename-ser-ser.stderr index e6e3b384..f41cf7df 100644 --- a/test_suite/tests/ui/duplicate-attribute/rename-ser-ser.stderr +++ b/test_suite/tests/ui/duplicate-attribute/rename-ser-ser.stderr @@ -1,5 +1,5 @@ error: duplicate serde attribute `rename` - --> $DIR/rename-ser-ser.rs:5:37 + --> $DIR/tests/ui/duplicate-attribute/rename-ser-ser.rs:5:37 | 5 | #[serde(rename(serialize = "x", serialize = "y"))] | ^^^^^^^^^ diff --git a/test_suite/tests/ui/duplicate-attribute/two-rename-ser.stderr b/test_suite/tests/ui/duplicate-attribute/two-rename-ser.stderr index 9973b4a8..bd2ba687 100644 --- a/test_suite/tests/ui/duplicate-attribute/two-rename-ser.stderr +++ b/test_suite/tests/ui/duplicate-attribute/two-rename-ser.stderr @@ -1,5 +1,5 @@ error: duplicate serde attribute `rename` - --> $DIR/two-rename-ser.rs:6:13 + --> $DIR/tests/ui/duplicate-attribute/two-rename-ser.rs:6:13 | 6 | #[serde(rename(serialize = "y"))] | ^^^^^^ diff --git a/test_suite/tests/ui/duplicate-attribute/with-and-serialize-with.stderr b/test_suite/tests/ui/duplicate-attribute/with-and-serialize-with.stderr index 62e29d57..1b766572 100644 --- a/test_suite/tests/ui/duplicate-attribute/with-and-serialize-with.stderr +++ b/test_suite/tests/ui/duplicate-attribute/with-and-serialize-with.stderr @@ -1,5 +1,5 @@ error: duplicate serde attribute `serialize_with` - --> $DIR/with-and-serialize-with.rs:5:25 + --> $DIR/tests/ui/duplicate-attribute/with-and-serialize-with.rs:5:25 | 5 | #[serde(with = "w", serialize_with = "s")] | ^^^^^^^^^^^^^^ diff --git a/test_suite/tests/ui/enum-representation/content-no-tag.stderr b/test_suite/tests/ui/enum-representation/content-no-tag.stderr index ea360281..69651ce5 100644 --- a/test_suite/tests/ui/enum-representation/content-no-tag.stderr +++ b/test_suite/tests/ui/enum-representation/content-no-tag.stderr @@ -1,5 +1,5 @@ error: #[serde(tag = "...", content = "...")] must be used together - --> $DIR/content-no-tag.rs:4:9 + --> $DIR/tests/ui/enum-representation/content-no-tag.rs:4:9 | 4 | #[serde(content = "c")] | ^^^^^^^ diff --git a/test_suite/tests/ui/enum-representation/internal-tuple-variant.stderr b/test_suite/tests/ui/enum-representation/internal-tuple-variant.stderr index cbe2cf85..366e6a3d 100644 --- a/test_suite/tests/ui/enum-representation/internal-tuple-variant.stderr +++ b/test_suite/tests/ui/enum-representation/internal-tuple-variant.stderr @@ -1,5 +1,5 @@ error: #[serde(tag = "...")] cannot be used with tuple variants - --> $DIR/internal-tuple-variant.rs:6:5 + --> $DIR/tests/ui/enum-representation/internal-tuple-variant.rs:6:5 | 6 | Tuple(u8, u8), | ^^^^^^^^^^^^^ diff --git a/test_suite/tests/ui/enum-representation/untagged-and-adjacent.stderr b/test_suite/tests/ui/enum-representation/untagged-and-adjacent.stderr index 9f42b51b..f458e85a 100644 --- a/test_suite/tests/ui/enum-representation/untagged-and-adjacent.stderr +++ b/test_suite/tests/ui/enum-representation/untagged-and-adjacent.stderr @@ -1,17 +1,17 @@ error: untagged enum cannot have #[serde(tag = "...", content = "...")] - --> $DIR/untagged-and-adjacent.rs:4:9 + --> $DIR/tests/ui/enum-representation/untagged-and-adjacent.rs:4:9 | 4 | #[serde(untagged)] | ^^^^^^^^ error: untagged enum cannot have #[serde(tag = "...", content = "...")] - --> $DIR/untagged-and-adjacent.rs:5:9 + --> $DIR/tests/ui/enum-representation/untagged-and-adjacent.rs:5:9 | 5 | #[serde(tag = "t", content = "c")] | ^^^ error: untagged enum cannot have #[serde(tag = "...", content = "...")] - --> $DIR/untagged-and-adjacent.rs:5:20 + --> $DIR/tests/ui/enum-representation/untagged-and-adjacent.rs:5:20 | 5 | #[serde(tag = "t", content = "c")] | ^^^^^^^ diff --git a/test_suite/tests/ui/enum-representation/untagged-and-content.stderr b/test_suite/tests/ui/enum-representation/untagged-and-content.stderr index 467d6c27..6d0bf240 100644 --- a/test_suite/tests/ui/enum-representation/untagged-and-content.stderr +++ b/test_suite/tests/ui/enum-representation/untagged-and-content.stderr @@ -1,11 +1,11 @@ error: untagged enum cannot have #[serde(content = "...")] - --> $DIR/untagged-and-content.rs:4:9 + --> $DIR/tests/ui/enum-representation/untagged-and-content.rs:4:9 | 4 | #[serde(untagged)] | ^^^^^^^^ error: untagged enum cannot have #[serde(content = "...")] - --> $DIR/untagged-and-content.rs:5:9 + --> $DIR/tests/ui/enum-representation/untagged-and-content.rs:5:9 | 5 | #[serde(content = "c")] | ^^^^^^^ diff --git a/test_suite/tests/ui/enum-representation/untagged-and-internal.stderr b/test_suite/tests/ui/enum-representation/untagged-and-internal.stderr index 78fed3da..98582e0e 100644 --- a/test_suite/tests/ui/enum-representation/untagged-and-internal.stderr +++ b/test_suite/tests/ui/enum-representation/untagged-and-internal.stderr @@ -1,11 +1,11 @@ error: enum cannot be both untagged and internally tagged - --> $DIR/untagged-and-internal.rs:4:9 + --> $DIR/tests/ui/enum-representation/untagged-and-internal.rs:4:9 | 4 | #[serde(untagged)] | ^^^^^^^^ error: enum cannot be both untagged and internally tagged - --> $DIR/untagged-and-internal.rs:5:9 + --> $DIR/tests/ui/enum-representation/untagged-and-internal.rs:5:9 | 5 | #[serde(tag = "type")] | ^^^ diff --git a/test_suite/tests/ui/enum-representation/untagged-struct.stderr b/test_suite/tests/ui/enum-representation/untagged-struct.stderr index 8a065d9b..ab03a9c3 100644 --- a/test_suite/tests/ui/enum-representation/untagged-struct.stderr +++ b/test_suite/tests/ui/enum-representation/untagged-struct.stderr @@ -1,5 +1,5 @@ error: #[serde(untagged)] can only be used on enums - --> $DIR/untagged-struct.rs:5:1 + --> $DIR/tests/ui/enum-representation/untagged-struct.rs:5:1 | 5 | struct S; | ^^^^^^ diff --git a/test_suite/tests/ui/expected-string/boolean.stderr b/test_suite/tests/ui/expected-string/boolean.stderr index f14bc7e6..a2af8c62 100644 --- a/test_suite/tests/ui/expected-string/boolean.stderr +++ b/test_suite/tests/ui/expected-string/boolean.stderr @@ -1,5 +1,5 @@ error: expected serde rename attribute to be a string: `rename = "..."` - --> $DIR/boolean.rs:5:22 + --> $DIR/tests/ui/expected-string/boolean.rs:5:22 | 5 | #[serde(rename = true)] | ^^^^ diff --git a/test_suite/tests/ui/expected-string/byte_character.stderr b/test_suite/tests/ui/expected-string/byte_character.stderr index 3b801dcb..e34c9bb2 100644 --- a/test_suite/tests/ui/expected-string/byte_character.stderr +++ b/test_suite/tests/ui/expected-string/byte_character.stderr @@ -1,5 +1,5 @@ error: expected serde rename attribute to be a string: `rename = "..."` - --> $DIR/byte_character.rs:5:22 + --> $DIR/tests/ui/expected-string/byte_character.rs:5:22 | 5 | #[serde(rename = b'a')] | ^^^^ diff --git a/test_suite/tests/ui/expected-string/byte_string.stderr b/test_suite/tests/ui/expected-string/byte_string.stderr index a16b0b92..3752b5ff 100644 --- a/test_suite/tests/ui/expected-string/byte_string.stderr +++ b/test_suite/tests/ui/expected-string/byte_string.stderr @@ -1,5 +1,5 @@ error: expected serde rename attribute to be a string: `rename = "..."` - --> $DIR/byte_string.rs:5:22 + --> $DIR/tests/ui/expected-string/byte_string.rs:5:22 | 5 | #[serde(rename = b"byte string")] | ^^^^^^^^^^^^^^ diff --git a/test_suite/tests/ui/expected-string/character.stderr b/test_suite/tests/ui/expected-string/character.stderr index 4524c07f..303bb828 100644 --- a/test_suite/tests/ui/expected-string/character.stderr +++ b/test_suite/tests/ui/expected-string/character.stderr @@ -1,5 +1,5 @@ error: expected serde rename attribute to be a string: `rename = "..."` - --> $DIR/character.rs:5:22 + --> $DIR/tests/ui/expected-string/character.rs:5:22 | 5 | #[serde(rename = 'a')] | ^^^ diff --git a/test_suite/tests/ui/expected-string/float.stderr b/test_suite/tests/ui/expected-string/float.stderr index f8c78c46..2befb0a4 100644 --- a/test_suite/tests/ui/expected-string/float.stderr +++ b/test_suite/tests/ui/expected-string/float.stderr @@ -1,5 +1,5 @@ error: expected serde rename attribute to be a string: `rename = "..."` - --> $DIR/float.rs:5:22 + --> $DIR/tests/ui/expected-string/float.rs:5:22 | 5 | #[serde(rename = 3.14)] | ^^^^ diff --git a/test_suite/tests/ui/expected-string/integer.stderr b/test_suite/tests/ui/expected-string/integer.stderr index 0d26e608..63d313ff 100644 --- a/test_suite/tests/ui/expected-string/integer.stderr +++ b/test_suite/tests/ui/expected-string/integer.stderr @@ -1,5 +1,5 @@ error: expected serde rename attribute to be a string: `rename = "..."` - --> $DIR/integer.rs:5:22 + --> $DIR/tests/ui/expected-string/integer.rs:5:22 | 5 | #[serde(rename = 100)] | ^^^ diff --git a/test_suite/tests/ui/identifier/both.stderr b/test_suite/tests/ui/identifier/both.stderr index 7cc3e86e..c475f122 100644 --- a/test_suite/tests/ui/identifier/both.stderr +++ b/test_suite/tests/ui/identifier/both.stderr @@ -1,11 +1,11 @@ error: #[serde(field_identifier)] and #[serde(variant_identifier)] cannot both be set - --> $DIR/both.rs:4:9 + --> $DIR/tests/ui/identifier/both.rs:4:9 | 4 | #[serde(field_identifier, variant_identifier)] | ^^^^^^^^^^^^^^^^ error: #[serde(field_identifier)] and #[serde(variant_identifier)] cannot both be set - --> $DIR/both.rs:4:27 + --> $DIR/tests/ui/identifier/both.rs:4:27 | 4 | #[serde(field_identifier, variant_identifier)] | ^^^^^^^^^^^^^^^^^^ diff --git a/test_suite/tests/ui/identifier/field_struct.stderr b/test_suite/tests/ui/identifier/field_struct.stderr index c87dd3bd..c651657f 100644 --- a/test_suite/tests/ui/identifier/field_struct.stderr +++ b/test_suite/tests/ui/identifier/field_struct.stderr @@ -1,5 +1,5 @@ error: #[serde(field_identifier)] can only be used on an enum - --> $DIR/field_struct.rs:5:1 + --> $DIR/tests/ui/identifier/field_struct.rs:5:1 | 5 | struct S; | ^^^^^^ diff --git a/test_suite/tests/ui/identifier/field_tuple.stderr b/test_suite/tests/ui/identifier/field_tuple.stderr index 5c2465a9..3baec55e 100644 --- a/test_suite/tests/ui/identifier/field_tuple.stderr +++ b/test_suite/tests/ui/identifier/field_tuple.stderr @@ -1,5 +1,5 @@ error: #[serde(field_identifier)] may only contain unit variants - --> $DIR/field_tuple.rs:7:5 + --> $DIR/tests/ui/identifier/field_tuple.rs:7:5 | 7 | B(u8, u8), | ^^^^^^^^^ diff --git a/test_suite/tests/ui/identifier/newtype_not_last.stderr b/test_suite/tests/ui/identifier/newtype_not_last.stderr index d4af4203..b1f8826b 100644 --- a/test_suite/tests/ui/identifier/newtype_not_last.stderr +++ b/test_suite/tests/ui/identifier/newtype_not_last.stderr @@ -1,5 +1,5 @@ error: `Other` must be the last variant - --> $DIR/newtype_not_last.rs:7:5 + --> $DIR/tests/ui/identifier/newtype_not_last.rs:7:5 | 7 | Other(String), | ^^^^^^^^^^^^^ diff --git a/test_suite/tests/ui/identifier/not_unit.stderr b/test_suite/tests/ui/identifier/not_unit.stderr index 612bfc63..cfe1f2ac 100644 --- a/test_suite/tests/ui/identifier/not_unit.stderr +++ b/test_suite/tests/ui/identifier/not_unit.stderr @@ -1,5 +1,5 @@ error: #[serde(other)] must be on a unit variant - --> $DIR/not_unit.rs:7:5 + --> $DIR/tests/ui/identifier/not_unit.rs:7:5 | 7 | / #[serde(other)] 8 | | Other(u8, u8), diff --git a/test_suite/tests/ui/identifier/other_not_last.stderr b/test_suite/tests/ui/identifier/other_not_last.stderr index 4a0525d6..df59617b 100644 --- a/test_suite/tests/ui/identifier/other_not_last.stderr +++ b/test_suite/tests/ui/identifier/other_not_last.stderr @@ -1,5 +1,5 @@ error: #[serde(other)] must be on the last variant - --> $DIR/other_not_last.rs:7:5 + --> $DIR/tests/ui/identifier/other_not_last.rs:7:5 | 7 | / #[serde(other)] 8 | | Other, diff --git a/test_suite/tests/ui/identifier/other_untagged.stderr b/test_suite/tests/ui/identifier/other_untagged.stderr index ddcf7b5a..24c60f0d 100644 --- a/test_suite/tests/ui/identifier/other_untagged.stderr +++ b/test_suite/tests/ui/identifier/other_untagged.stderr @@ -1,5 +1,5 @@ error: #[serde(other)] cannot appear on untagged enum - --> $DIR/other_untagged.rs:6:5 + --> $DIR/tests/ui/identifier/other_untagged.rs:6:5 | 6 | / #[serde(other)] 7 | | Other, diff --git a/test_suite/tests/ui/identifier/other_variant.stderr b/test_suite/tests/ui/identifier/other_variant.stderr index d9089d7f..44840160 100644 --- a/test_suite/tests/ui/identifier/other_variant.stderr +++ b/test_suite/tests/ui/identifier/other_variant.stderr @@ -1,5 +1,5 @@ error: #[serde(other)] may not be used on a variant identifier - --> $DIR/other_variant.rs:6:5 + --> $DIR/tests/ui/identifier/other_variant.rs:6:5 | 6 | / #[serde(other)] 7 | | Other, diff --git a/test_suite/tests/ui/identifier/variant_struct.stderr b/test_suite/tests/ui/identifier/variant_struct.stderr index ba8ed067..b33c0d27 100644 --- a/test_suite/tests/ui/identifier/variant_struct.stderr +++ b/test_suite/tests/ui/identifier/variant_struct.stderr @@ -1,5 +1,5 @@ error: #[serde(variant_identifier)] can only be used on an enum - --> $DIR/variant_struct.rs:5:1 + --> $DIR/tests/ui/identifier/variant_struct.rs:5:1 | 5 | struct S; | ^^^^^^ diff --git a/test_suite/tests/ui/identifier/variant_tuple.stderr b/test_suite/tests/ui/identifier/variant_tuple.stderr index 9fb0a7fb..32bc09da 100644 --- a/test_suite/tests/ui/identifier/variant_tuple.stderr +++ b/test_suite/tests/ui/identifier/variant_tuple.stderr @@ -1,5 +1,5 @@ error: #[serde(variant_identifier)] may only contain unit variants - --> $DIR/variant_tuple.rs:7:5 + --> $DIR/tests/ui/identifier/variant_tuple.rs:7:5 | 7 | B(u8, u8), | ^^^^^^^^^ diff --git a/test_suite/tests/ui/malformed/bound.stderr b/test_suite/tests/ui/malformed/bound.stderr index 59537de1..99441370 100644 --- a/test_suite/tests/ui/malformed/bound.stderr +++ b/test_suite/tests/ui/malformed/bound.stderr @@ -1,5 +1,5 @@ error: malformed bound attribute, expected `bound(serialize = ..., deserialize = ...)` - --> $DIR/bound.rs:5:19 + --> $DIR/tests/ui/malformed/bound.rs:5:19 | 5 | #[serde(bound(unknown))] | ^^^^^^^ diff --git a/test_suite/tests/ui/malformed/cut_off.stderr b/test_suite/tests/ui/malformed/cut_off.stderr index d3945c30..12e84172 100644 --- a/test_suite/tests/ui/malformed/cut_off.stderr +++ b/test_suite/tests/ui/malformed/cut_off.stderr @@ -1,5 +1,5 @@ error: unexpected end of input, expected literal - --> $DIR/cut_off.rs:4:17 + --> $DIR/tests/ui/malformed/cut_off.rs:4:17 | 4 | #[serde(rename =)] | ^ diff --git a/test_suite/tests/ui/malformed/not_list.stderr b/test_suite/tests/ui/malformed/not_list.stderr index 31eae65d..de3136cb 100644 --- a/test_suite/tests/ui/malformed/not_list.stderr +++ b/test_suite/tests/ui/malformed/not_list.stderr @@ -1,11 +1,11 @@ error: expected #[serde(...)] - --> $DIR/not_list.rs:4:3 + --> $DIR/tests/ui/malformed/not_list.rs:4:3 | 4 | #[serde] | ^^^^^ error: expected #[serde(...)] - --> $DIR/not_list.rs:5:3 + --> $DIR/tests/ui/malformed/not_list.rs:5:3 | 5 | #[serde = "?"] | ^^^^^^^^^^^ diff --git a/test_suite/tests/ui/malformed/rename.stderr b/test_suite/tests/ui/malformed/rename.stderr index a2e244f5..3aeaba54 100644 --- a/test_suite/tests/ui/malformed/rename.stderr +++ b/test_suite/tests/ui/malformed/rename.stderr @@ -1,5 +1,5 @@ error: malformed rename attribute, expected `rename(serialize = ..., deserialize = ...)` - --> $DIR/rename.rs:5:20 + --> $DIR/tests/ui/malformed/rename.rs:5:20 | 5 | #[serde(rename(unknown))] | ^^^^^^^ diff --git a/test_suite/tests/ui/precondition/deserialize_de_lifetime.stderr b/test_suite/tests/ui/precondition/deserialize_de_lifetime.stderr index 642f3f1c..e916422e 100644 --- a/test_suite/tests/ui/precondition/deserialize_de_lifetime.stderr +++ b/test_suite/tests/ui/precondition/deserialize_de_lifetime.stderr @@ -1,5 +1,5 @@ error: cannot deserialize when there is a lifetime parameter called 'de - --> $DIR/deserialize_de_lifetime.rs:4:10 + --> $DIR/tests/ui/precondition/deserialize_de_lifetime.rs:4:10 | 4 | struct S<'de> { | ^^^ diff --git a/test_suite/tests/ui/precondition/deserialize_dst.stderr b/test_suite/tests/ui/precondition/deserialize_dst.stderr index 92386456..d9d2d842 100644 --- a/test_suite/tests/ui/precondition/deserialize_dst.stderr +++ b/test_suite/tests/ui/precondition/deserialize_dst.stderr @@ -1,5 +1,5 @@ error: cannot deserialize a dynamically sized struct - --> $DIR/deserialize_dst.rs:4:1 + --> $DIR/tests/ui/precondition/deserialize_dst.rs:4:1 | 4 | / struct S { 5 | | string: String, diff --git a/test_suite/tests/ui/precondition/serialize_field_identifier.stderr b/test_suite/tests/ui/precondition/serialize_field_identifier.stderr index 9b59f4f8..dbeb7cee 100644 --- a/test_suite/tests/ui/precondition/serialize_field_identifier.stderr +++ b/test_suite/tests/ui/precondition/serialize_field_identifier.stderr @@ -1,5 +1,5 @@ error: field identifiers cannot be serialized - --> $DIR/serialize_field_identifier.rs:4:1 + --> $DIR/tests/ui/precondition/serialize_field_identifier.rs:4:1 | 4 | / #[serde(field_identifier)] 5 | | enum F { diff --git a/test_suite/tests/ui/precondition/serialize_variant_identifier.stderr b/test_suite/tests/ui/precondition/serialize_variant_identifier.stderr index 4641f35f..5280103d 100644 --- a/test_suite/tests/ui/precondition/serialize_variant_identifier.stderr +++ b/test_suite/tests/ui/precondition/serialize_variant_identifier.stderr @@ -1,5 +1,5 @@ error: variant identifiers cannot be serialized - --> $DIR/serialize_variant_identifier.rs:4:1 + --> $DIR/tests/ui/precondition/serialize_variant_identifier.rs:4:1 | 4 | / #[serde(variant_identifier)] 5 | | enum F { diff --git a/test_suite/tests/ui/remote/bad_getter.stderr b/test_suite/tests/ui/remote/bad_getter.stderr index 87150926..5c52e391 100644 --- a/test_suite/tests/ui/remote/bad_getter.stderr +++ b/test_suite/tests/ui/remote/bad_getter.stderr @@ -1,5 +1,5 @@ error: failed to parse path: "~~~" - --> $DIR/bad_getter.rs:12:22 + --> $DIR/tests/ui/remote/bad_getter.rs:12:22 | 12 | #[serde(getter = "~~~")] | ^^^^^ diff --git a/test_suite/tests/ui/remote/bad_remote.stderr b/test_suite/tests/ui/remote/bad_remote.stderr index dc985564..e7573989 100644 --- a/test_suite/tests/ui/remote/bad_remote.stderr +++ b/test_suite/tests/ui/remote/bad_remote.stderr @@ -1,5 +1,5 @@ error: failed to parse path: "~~~" - --> $DIR/bad_remote.rs:10:18 + --> $DIR/tests/ui/remote/bad_remote.rs:10:18 | 10 | #[serde(remote = "~~~")] | ^^^^^ diff --git a/test_suite/tests/ui/remote/enum_getter.stderr b/test_suite/tests/ui/remote/enum_getter.stderr index 77edefc5..7a10ad44 100644 --- a/test_suite/tests/ui/remote/enum_getter.stderr +++ b/test_suite/tests/ui/remote/enum_getter.stderr @@ -1,5 +1,5 @@ error: #[serde(getter = "...")] is not allowed in an enum - --> $DIR/enum_getter.rs:10:1 + --> $DIR/tests/ui/remote/enum_getter.rs:10:1 | 10 | / #[serde(remote = "remote::E")] 11 | | pub enum E { diff --git a/test_suite/tests/ui/remote/missing_field.stderr b/test_suite/tests/ui/remote/missing_field.stderr index 5d47ea7d..3040e6a9 100644 --- a/test_suite/tests/ui/remote/missing_field.stderr +++ b/test_suite/tests/ui/remote/missing_field.stderr @@ -1,5 +1,5 @@ error[E0063]: missing field `b` in initializer of `remote::S` - --> $DIR/missing_field.rs:11:18 + --> $DIR/tests/ui/remote/missing_field.rs:11:18 | 11 | #[serde(remote = "remote::S")] | ^^^^^^^^^^^ missing `b` diff --git a/test_suite/tests/ui/remote/nonremote_getter.stderr b/test_suite/tests/ui/remote/nonremote_getter.stderr index 60d6d48e..c962aad2 100644 --- a/test_suite/tests/ui/remote/nonremote_getter.stderr +++ b/test_suite/tests/ui/remote/nonremote_getter.stderr @@ -1,5 +1,5 @@ error: #[serde(getter = "...")] can only be used in structs that have #[serde(remote = "...")] - --> $DIR/nonremote_getter.rs:4:1 + --> $DIR/tests/ui/remote/nonremote_getter.rs:4:1 | 4 | / struct S { 5 | | #[serde(getter = "S::get")] diff --git a/test_suite/tests/ui/remote/unknown_field.stderr b/test_suite/tests/ui/remote/unknown_field.stderr index 9e22ee9e..061a3cce 100644 --- a/test_suite/tests/ui/remote/unknown_field.stderr +++ b/test_suite/tests/ui/remote/unknown_field.stderr @@ -1,11 +1,11 @@ error[E0609]: no field `b` on type `&remote::S` - --> $DIR/unknown_field.rs:12:5 + --> $DIR/tests/ui/remote/unknown_field.rs:12:5 | 12 | b: u8, | ^ help: a field with a similar name exists: `a` error[E0560]: struct `remote::S` has no field named `b` - --> $DIR/unknown_field.rs:12:5 + --> $DIR/tests/ui/remote/unknown_field.rs:12:5 | 12 | b: u8, | ^ help: a field with a similar name exists: `a` diff --git a/test_suite/tests/ui/remote/wrong_de.stderr b/test_suite/tests/ui/remote/wrong_de.stderr index 132d5341..79d6a9be 100644 --- a/test_suite/tests/ui/remote/wrong_de.stderr +++ b/test_suite/tests/ui/remote/wrong_de.stderr @@ -1,5 +1,5 @@ error[E0308]: mismatched types - --> $DIR/wrong_de.rs:7:10 + --> $DIR/tests/ui/remote/wrong_de.rs:7:10 | 7 | #[derive(Deserialize)] | ^^^^^^^^^^^ expected `u16`, found `u8` diff --git a/test_suite/tests/ui/remote/wrong_getter.stderr b/test_suite/tests/ui/remote/wrong_getter.stderr index 5eee1453..e15f1237 100644 --- a/test_suite/tests/ui/remote/wrong_getter.stderr +++ b/test_suite/tests/ui/remote/wrong_getter.stderr @@ -1,5 +1,5 @@ error[E0308]: mismatched types - --> $DIR/wrong_getter.rs:15:10 + --> $DIR/tests/ui/remote/wrong_getter.rs:15:10 | 15 | #[derive(Serialize)] | ^^^^^^^^^ expected `u8`, found `u16` diff --git a/test_suite/tests/ui/remote/wrong_ser.stderr b/test_suite/tests/ui/remote/wrong_ser.stderr index e16cfcb8..6fa72296 100644 --- a/test_suite/tests/ui/remote/wrong_ser.stderr +++ b/test_suite/tests/ui/remote/wrong_ser.stderr @@ -1,5 +1,5 @@ error[E0308]: mismatched types - --> $DIR/wrong_ser.rs:9:10 + --> $DIR/tests/ui/remote/wrong_ser.rs:9:10 | 9 | #[derive(Serialize)] | ^^^^^^^^^ expected `u8`, found `u16` diff --git a/test_suite/tests/ui/rename/container_unknown_rename_rule.stderr b/test_suite/tests/ui/rename/container_unknown_rename_rule.stderr index 3fd68f3f..c678c71d 100644 --- a/test_suite/tests/ui/rename/container_unknown_rename_rule.stderr +++ b/test_suite/tests/ui/rename/container_unknown_rename_rule.stderr @@ -1,5 +1,5 @@ error: unknown rename rule `rename_all = "abc"`, expected one of "lowercase", "UPPERCASE", "PascalCase", "camelCase", "snake_case", "SCREAMING_SNAKE_CASE", "kebab-case", "SCREAMING-KEBAB-CASE" - --> $DIR/container_unknown_rename_rule.rs:4:22 + --> $DIR/tests/ui/rename/container_unknown_rename_rule.rs:4:22 | 4 | #[serde(rename_all = "abc")] | ^^^^^ diff --git a/test_suite/tests/ui/rename/variant_unknown_rename_rule.stderr b/test_suite/tests/ui/rename/variant_unknown_rename_rule.stderr index 48f53f89..a71e5151 100644 --- a/test_suite/tests/ui/rename/variant_unknown_rename_rule.stderr +++ b/test_suite/tests/ui/rename/variant_unknown_rename_rule.stderr @@ -1,5 +1,5 @@ error: unknown rename rule `rename_all = "abc"`, expected one of "lowercase", "UPPERCASE", "PascalCase", "camelCase", "snake_case", "SCREAMING_SNAKE_CASE", "kebab-case", "SCREAMING-KEBAB-CASE" - --> $DIR/variant_unknown_rename_rule.rs:5:26 + --> $DIR/tests/ui/rename/variant_unknown_rename_rule.rs:5:26 | 5 | #[serde(rename_all = "abc")] | ^^^^^ diff --git a/test_suite/tests/ui/struct-representation/internally-tagged-tuple.stderr b/test_suite/tests/ui/struct-representation/internally-tagged-tuple.stderr index 7cf17989..f8ab4559 100644 --- a/test_suite/tests/ui/struct-representation/internally-tagged-tuple.stderr +++ b/test_suite/tests/ui/struct-representation/internally-tagged-tuple.stderr @@ -1,5 +1,5 @@ error: #[serde(tag = "...")] can only be used on enums and structs with named fields - --> $DIR/internally-tagged-tuple.rs:5:9 + --> $DIR/tests/ui/struct-representation/internally-tagged-tuple.rs:5:9 | 5 | struct S(u8, u8); | ^^^^^^^^ diff --git a/test_suite/tests/ui/struct-representation/internally-tagged-unit.stderr b/test_suite/tests/ui/struct-representation/internally-tagged-unit.stderr index 39103b7a..8fc5d83a 100644 --- a/test_suite/tests/ui/struct-representation/internally-tagged-unit.stderr +++ b/test_suite/tests/ui/struct-representation/internally-tagged-unit.stderr @@ -1,5 +1,5 @@ error: #[serde(tag = "...")] can only be used on enums and structs with named fields - --> $DIR/internally-tagged-unit.rs:3:10 + --> $DIR/tests/ui/struct-representation/internally-tagged-unit.rs:3:10 | 3 | #[derive(Serialize)] | ^^^^^^^^^ diff --git a/test_suite/tests/ui/transparent/at_most_one.stderr b/test_suite/tests/ui/transparent/at_most_one.stderr index b6a234c0..63949439 100644 --- a/test_suite/tests/ui/transparent/at_most_one.stderr +++ b/test_suite/tests/ui/transparent/at_most_one.stderr @@ -1,5 +1,5 @@ error: #[serde(transparent)] requires struct to have at most one transparent field - --> $DIR/at_most_one.rs:4:1 + --> $DIR/tests/ui/transparent/at_most_one.rs:4:1 | 4 | / #[serde(transparent)] 5 | | struct S { diff --git a/test_suite/tests/ui/transparent/de_at_least_one.stderr b/test_suite/tests/ui/transparent/de_at_least_one.stderr index 42a02c0b..5cb31ee0 100644 --- a/test_suite/tests/ui/transparent/de_at_least_one.stderr +++ b/test_suite/tests/ui/transparent/de_at_least_one.stderr @@ -1,5 +1,5 @@ error: #[serde(transparent)] requires at least one field that is neither skipped nor has a default - --> $DIR/de_at_least_one.rs:4:1 + --> $DIR/tests/ui/transparent/de_at_least_one.rs:4:1 | 4 | / #[serde(transparent)] 5 | | struct S { diff --git a/test_suite/tests/ui/transparent/enum.stderr b/test_suite/tests/ui/transparent/enum.stderr index 2181fa8b..f19863fa 100644 --- a/test_suite/tests/ui/transparent/enum.stderr +++ b/test_suite/tests/ui/transparent/enum.stderr @@ -1,5 +1,5 @@ error: #[serde(transparent)] is not allowed on an enum - --> $DIR/enum.rs:4:1 + --> $DIR/tests/ui/transparent/enum.rs:4:1 | 4 | / #[serde(transparent)] 5 | | enum E {} diff --git a/test_suite/tests/ui/transparent/ser_at_least_one.stderr b/test_suite/tests/ui/transparent/ser_at_least_one.stderr index 6e1c01b5..50d534ef 100644 --- a/test_suite/tests/ui/transparent/ser_at_least_one.stderr +++ b/test_suite/tests/ui/transparent/ser_at_least_one.stderr @@ -1,5 +1,5 @@ error: #[serde(transparent)] requires at least one field that is not skipped - --> $DIR/ser_at_least_one.rs:4:1 + --> $DIR/tests/ui/transparent/ser_at_least_one.rs:4:1 | 4 | / #[serde(transparent)] 5 | | struct S { diff --git a/test_suite/tests/ui/transparent/unit_struct.stderr b/test_suite/tests/ui/transparent/unit_struct.stderr index d6371efa..c3421087 100644 --- a/test_suite/tests/ui/transparent/unit_struct.stderr +++ b/test_suite/tests/ui/transparent/unit_struct.stderr @@ -1,5 +1,5 @@ error: #[serde(transparent)] is not allowed on a unit struct - --> $DIR/unit_struct.rs:4:1 + --> $DIR/tests/ui/transparent/unit_struct.rs:4:1 | 4 | / #[serde(transparent)] 5 | | struct S; diff --git a/test_suite/tests/ui/transparent/with_from.stderr b/test_suite/tests/ui/transparent/with_from.stderr index fd031d43..94e81f52 100644 --- a/test_suite/tests/ui/transparent/with_from.stderr +++ b/test_suite/tests/ui/transparent/with_from.stderr @@ -1,5 +1,5 @@ error: #[serde(transparent)] is not allowed with #[serde(from = "...")] - --> $DIR/with_from.rs:4:1 + --> $DIR/tests/ui/transparent/with_from.rs:4:1 | 4 | / #[serde(transparent, from = "u64")] 5 | | struct S { diff --git a/test_suite/tests/ui/transparent/with_into.stderr b/test_suite/tests/ui/transparent/with_into.stderr index c8f72a37..dac6a676 100644 --- a/test_suite/tests/ui/transparent/with_into.stderr +++ b/test_suite/tests/ui/transparent/with_into.stderr @@ -1,5 +1,5 @@ error: #[serde(transparent)] is not allowed with #[serde(into = "...")] - --> $DIR/with_into.rs:4:1 + --> $DIR/tests/ui/transparent/with_into.rs:4:1 | 4 | / #[serde(transparent, into = "u64")] 5 | | struct S { diff --git a/test_suite/tests/ui/transparent/with_try_from.stderr b/test_suite/tests/ui/transparent/with_try_from.stderr index f76f3748..cf6a7fc7 100644 --- a/test_suite/tests/ui/transparent/with_try_from.stderr +++ b/test_suite/tests/ui/transparent/with_try_from.stderr @@ -1,5 +1,5 @@ error: #[serde(transparent)] is not allowed with #[serde(try_from = "...")] - --> $DIR/with_try_from.rs:4:1 + --> $DIR/tests/ui/transparent/with_try_from.rs:4:1 | 4 | / #[serde(transparent, try_from = "u64")] 5 | | struct S { diff --git a/test_suite/tests/ui/type-attribute/from.stderr b/test_suite/tests/ui/type-attribute/from.stderr index 1aae4c4d..3db1ecb5 100644 --- a/test_suite/tests/ui/type-attribute/from.stderr +++ b/test_suite/tests/ui/type-attribute/from.stderr @@ -1,5 +1,5 @@ error: failed to parse type: from = "Option $DIR/from.rs:4:16 + --> $DIR/tests/ui/type-attribute/from.rs:4:16 | 4 | #[serde(from = "Option $DIR/into.rs:4:16 + --> $DIR/tests/ui/type-attribute/into.rs:4:16 | 4 | #[serde(into = "Option $DIR/try_from.rs:4:20 + --> $DIR/tests/ui/type-attribute/try_from.rs:4:20 | 4 | #[serde(try_from = "Option $DIR/container.rs:4:9 + --> $DIR/tests/ui/unexpected-literal/container.rs:4:9 | 4 | #[serde("literal")] | ^^^^^^^^^ diff --git a/test_suite/tests/ui/unexpected-literal/field.stderr b/test_suite/tests/ui/unexpected-literal/field.stderr index 3895a660..e288533b 100644 --- a/test_suite/tests/ui/unexpected-literal/field.stderr +++ b/test_suite/tests/ui/unexpected-literal/field.stderr @@ -1,5 +1,5 @@ error: unexpected literal in serde field attribute - --> $DIR/field.rs:5:13 + --> $DIR/tests/ui/unexpected-literal/field.rs:5:13 | 5 | #[serde("literal")] | ^^^^^^^^^ diff --git a/test_suite/tests/ui/unexpected-literal/variant.stderr b/test_suite/tests/ui/unexpected-literal/variant.stderr index b7b2165c..21d28557 100644 --- a/test_suite/tests/ui/unexpected-literal/variant.stderr +++ b/test_suite/tests/ui/unexpected-literal/variant.stderr @@ -1,5 +1,5 @@ error: unexpected literal in serde variant attribute - --> $DIR/variant.rs:5:13 + --> $DIR/tests/ui/unexpected-literal/variant.rs:5:13 | 5 | #[serde("literal")] | ^^^^^^^^^ diff --git a/test_suite/tests/ui/unknown-attribute/container.stderr b/test_suite/tests/ui/unknown-attribute/container.stderr index 402a1b60..f0ff9df9 100644 --- a/test_suite/tests/ui/unknown-attribute/container.stderr +++ b/test_suite/tests/ui/unknown-attribute/container.stderr @@ -1,5 +1,5 @@ error: unknown serde container attribute `abc` - --> $DIR/container.rs:4:9 + --> $DIR/tests/ui/unknown-attribute/container.rs:4:9 | 4 | #[serde(abc = "xyz")] | ^^^ diff --git a/test_suite/tests/ui/unknown-attribute/field.stderr b/test_suite/tests/ui/unknown-attribute/field.stderr index b13754a3..4a3377de 100644 --- a/test_suite/tests/ui/unknown-attribute/field.stderr +++ b/test_suite/tests/ui/unknown-attribute/field.stderr @@ -1,5 +1,5 @@ error: unknown serde field attribute `abc` - --> $DIR/field.rs:5:13 + --> $DIR/tests/ui/unknown-attribute/field.rs:5:13 | 5 | #[serde(abc = "xyz")] | ^^^ diff --git a/test_suite/tests/ui/unknown-attribute/variant.stderr b/test_suite/tests/ui/unknown-attribute/variant.stderr index 64254f85..01a3b07e 100644 --- a/test_suite/tests/ui/unknown-attribute/variant.stderr +++ b/test_suite/tests/ui/unknown-attribute/variant.stderr @@ -1,5 +1,5 @@ error: unknown serde variant attribute `abc` - --> $DIR/variant.rs:5:13 + --> $DIR/tests/ui/unknown-attribute/variant.rs:5:13 | 5 | #[serde(abc = "xyz")] | ^^^ diff --git a/test_suite/tests/ui/unsupported/union_de.stderr b/test_suite/tests/ui/unsupported/union_de.stderr index b7892d49..69744d5a 100644 --- a/test_suite/tests/ui/unsupported/union_de.stderr +++ b/test_suite/tests/ui/unsupported/union_de.stderr @@ -1,5 +1,5 @@ error: Serde does not support derive for unions - --> $DIR/union_de.rs:4:1 + --> $DIR/tests/ui/unsupported/union_de.rs:4:1 | 4 | / union Union { 5 | | x: u8, diff --git a/test_suite/tests/ui/unsupported/union_ser.stderr b/test_suite/tests/ui/unsupported/union_ser.stderr index 78d87c71..c7c3ef2a 100644 --- a/test_suite/tests/ui/unsupported/union_ser.stderr +++ b/test_suite/tests/ui/unsupported/union_ser.stderr @@ -1,5 +1,5 @@ error: Serde does not support derive for unions - --> $DIR/union_ser.rs:4:1 + --> $DIR/tests/ui/unsupported/union_ser.rs:4:1 | 4 | / union Union { 5 | | x: u8, diff --git a/test_suite/tests/ui/with-variant/skip_de_newtype_field.stderr b/test_suite/tests/ui/with-variant/skip_de_newtype_field.stderr index d3ff8c6e..83e27c1b 100644 --- a/test_suite/tests/ui/with-variant/skip_de_newtype_field.stderr +++ b/test_suite/tests/ui/with-variant/skip_de_newtype_field.stderr @@ -1,5 +1,5 @@ error: variant `Newtype` cannot have both #[serde(deserialize_with)] and a field #0 marked with #[serde(skip_deserializing)] - --> $DIR/skip_de_newtype_field.rs:5:5 + --> $DIR/tests/ui/with-variant/skip_de_newtype_field.rs:5:5 | 5 | / #[serde(deserialize_with = "deserialize_some_newtype_variant")] 6 | | Newtype(#[serde(skip_deserializing)] String), diff --git a/test_suite/tests/ui/with-variant/skip_de_struct_field.stderr b/test_suite/tests/ui/with-variant/skip_de_struct_field.stderr index ee7e3791..c791f0e4 100644 --- a/test_suite/tests/ui/with-variant/skip_de_struct_field.stderr +++ b/test_suite/tests/ui/with-variant/skip_de_struct_field.stderr @@ -1,5 +1,5 @@ error: variant `Struct` cannot have both #[serde(deserialize_with)] and a field `f1` marked with #[serde(skip_deserializing)] - --> $DIR/skip_de_struct_field.rs:5:5 + --> $DIR/tests/ui/with-variant/skip_de_struct_field.rs:5:5 | 5 | / #[serde(deserialize_with = "deserialize_some_other_variant")] 6 | | Struct { diff --git a/test_suite/tests/ui/with-variant/skip_de_tuple_field.stderr b/test_suite/tests/ui/with-variant/skip_de_tuple_field.stderr index f2cc90e8..137dbe88 100644 --- a/test_suite/tests/ui/with-variant/skip_de_tuple_field.stderr +++ b/test_suite/tests/ui/with-variant/skip_de_tuple_field.stderr @@ -1,5 +1,5 @@ error: variant `Tuple` cannot have both #[serde(deserialize_with)] and a field #0 marked with #[serde(skip_deserializing)] - --> $DIR/skip_de_tuple_field.rs:5:5 + --> $DIR/tests/ui/with-variant/skip_de_tuple_field.rs:5:5 | 5 | / #[serde(deserialize_with = "deserialize_some_other_variant")] 6 | | Tuple(#[serde(skip_deserializing)] String, u8), diff --git a/test_suite/tests/ui/with-variant/skip_de_whole_variant.stderr b/test_suite/tests/ui/with-variant/skip_de_whole_variant.stderr index 8f1be163..0ae972c6 100644 --- a/test_suite/tests/ui/with-variant/skip_de_whole_variant.stderr +++ b/test_suite/tests/ui/with-variant/skip_de_whole_variant.stderr @@ -1,5 +1,5 @@ error: variant `Unit` cannot have both #[serde(deserialize_with)] and #[serde(skip_deserializing)] - --> $DIR/skip_de_whole_variant.rs:5:5 + --> $DIR/tests/ui/with-variant/skip_de_whole_variant.rs:5:5 | 5 | / #[serde(deserialize_with = "deserialize_some_unit_variant")] 6 | | #[serde(skip_deserializing)] diff --git a/test_suite/tests/ui/with-variant/skip_ser_newtype_field.stderr b/test_suite/tests/ui/with-variant/skip_ser_newtype_field.stderr index 5741bc4f..86586d71 100644 --- a/test_suite/tests/ui/with-variant/skip_ser_newtype_field.stderr +++ b/test_suite/tests/ui/with-variant/skip_ser_newtype_field.stderr @@ -1,5 +1,5 @@ error: variant `Newtype` cannot have both #[serde(serialize_with)] and a field #0 marked with #[serde(skip_serializing)] - --> $DIR/skip_ser_newtype_field.rs:5:5 + --> $DIR/tests/ui/with-variant/skip_ser_newtype_field.rs:5:5 | 5 | / #[serde(serialize_with = "serialize_some_newtype_variant")] 6 | | Newtype(#[serde(skip_serializing)] String), diff --git a/test_suite/tests/ui/with-variant/skip_ser_newtype_field_if.stderr b/test_suite/tests/ui/with-variant/skip_ser_newtype_field_if.stderr index 8103680f..8057fa99 100644 --- a/test_suite/tests/ui/with-variant/skip_ser_newtype_field_if.stderr +++ b/test_suite/tests/ui/with-variant/skip_ser_newtype_field_if.stderr @@ -1,5 +1,5 @@ error: variant `Newtype` cannot have both #[serde(serialize_with)] and a field #0 marked with #[serde(skip_serializing_if)] - --> $DIR/skip_ser_newtype_field_if.rs:5:5 + --> $DIR/tests/ui/with-variant/skip_ser_newtype_field_if.rs:5:5 | 5 | / #[serde(serialize_with = "serialize_some_newtype_variant")] 6 | | Newtype(#[serde(skip_serializing_if = "always")] String), diff --git a/test_suite/tests/ui/with-variant/skip_ser_struct_field.stderr b/test_suite/tests/ui/with-variant/skip_ser_struct_field.stderr index 5b1e2301..042b7441 100644 --- a/test_suite/tests/ui/with-variant/skip_ser_struct_field.stderr +++ b/test_suite/tests/ui/with-variant/skip_ser_struct_field.stderr @@ -1,5 +1,5 @@ error: variant `Struct` cannot have both #[serde(serialize_with)] and a field `f1` marked with #[serde(skip_serializing)] - --> $DIR/skip_ser_struct_field.rs:5:5 + --> $DIR/tests/ui/with-variant/skip_ser_struct_field.rs:5:5 | 5 | / #[serde(serialize_with = "serialize_some_other_variant")] 6 | | Struct { diff --git a/test_suite/tests/ui/with-variant/skip_ser_struct_field_if.stderr b/test_suite/tests/ui/with-variant/skip_ser_struct_field_if.stderr index 4fc89d6a..a05dcfb8 100644 --- a/test_suite/tests/ui/with-variant/skip_ser_struct_field_if.stderr +++ b/test_suite/tests/ui/with-variant/skip_ser_struct_field_if.stderr @@ -1,5 +1,5 @@ error: variant `Struct` cannot have both #[serde(serialize_with)] and a field `f1` marked with #[serde(skip_serializing_if)] - --> $DIR/skip_ser_struct_field_if.rs:5:5 + --> $DIR/tests/ui/with-variant/skip_ser_struct_field_if.rs:5:5 | 5 | / #[serde(serialize_with = "serialize_some_newtype_variant")] 6 | | Struct { diff --git a/test_suite/tests/ui/with-variant/skip_ser_tuple_field.stderr b/test_suite/tests/ui/with-variant/skip_ser_tuple_field.stderr index 4ea2dda5..73d9296d 100644 --- a/test_suite/tests/ui/with-variant/skip_ser_tuple_field.stderr +++ b/test_suite/tests/ui/with-variant/skip_ser_tuple_field.stderr @@ -1,5 +1,5 @@ error: variant `Tuple` cannot have both #[serde(serialize_with)] and a field #0 marked with #[serde(skip_serializing)] - --> $DIR/skip_ser_tuple_field.rs:5:5 + --> $DIR/tests/ui/with-variant/skip_ser_tuple_field.rs:5:5 | 5 | / #[serde(serialize_with = "serialize_some_other_variant")] 6 | | Tuple(#[serde(skip_serializing)] String, u8), diff --git a/test_suite/tests/ui/with-variant/skip_ser_tuple_field_if.stderr b/test_suite/tests/ui/with-variant/skip_ser_tuple_field_if.stderr index 1f8a8149..92d31d87 100644 --- a/test_suite/tests/ui/with-variant/skip_ser_tuple_field_if.stderr +++ b/test_suite/tests/ui/with-variant/skip_ser_tuple_field_if.stderr @@ -1,5 +1,5 @@ error: variant `Tuple` cannot have both #[serde(serialize_with)] and a field #0 marked with #[serde(skip_serializing_if)] - --> $DIR/skip_ser_tuple_field_if.rs:5:5 + --> $DIR/tests/ui/with-variant/skip_ser_tuple_field_if.rs:5:5 | 5 | / #[serde(serialize_with = "serialize_some_other_variant")] 6 | | Tuple(#[serde(skip_serializing_if = "always")] String, u8), diff --git a/test_suite/tests/ui/with-variant/skip_ser_whole_variant.stderr b/test_suite/tests/ui/with-variant/skip_ser_whole_variant.stderr index 20decdc4..b25da7a4 100644 --- a/test_suite/tests/ui/with-variant/skip_ser_whole_variant.stderr +++ b/test_suite/tests/ui/with-variant/skip_ser_whole_variant.stderr @@ -1,5 +1,5 @@ error: variant `Unit` cannot have both #[serde(serialize_with)] and #[serde(skip_serializing)] - --> $DIR/skip_ser_whole_variant.rs:5:5 + --> $DIR/tests/ui/with-variant/skip_ser_whole_variant.rs:5:5 | 5 | / #[serde(serialize_with = "serialize_some_unit_variant")] 6 | | #[serde(skip_serializing)]