diff --git a/tests/codegen/fail/interface/struct/attr_cyclic_impl.stderr b/tests/codegen/fail/interface/struct/attr_cyclic_impl.stderr index ed809a5a..c370b161 100644 --- a/tests/codegen/fail/interface/struct/attr_cyclic_impl.stderr +++ b/tests/codegen/fail/interface/struct/attr_cyclic_impl.stderr @@ -24,3 +24,4 @@ note: cycle used when collecting item types in top-level module 12 | | 13 | | fn main() {} | |____________^ + = note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information diff --git a/tests/codegen/fail/interface/struct/attr_field_non_output_return_type.stderr b/tests/codegen/fail/interface/struct/attr_field_non_output_return_type.stderr index f2d975b2..cd32c75c 100644 --- a/tests/codegen/fail/interface/struct/attr_field_non_output_return_type.stderr +++ b/tests/codegen/fail/interface/struct/attr_field_non_output_return_type.stderr @@ -1,16 +1,16 @@ error[E0277]: the trait bound `ObjB: IsOutputType<__S>` is not satisfied - --> fail/interface/struct/attr_field_non_output_return_type.rs:10:9 - | -10 | id: ObjB, - | ^^^^ the trait `IsOutputType<__S>` is not implemented for `ObjB` - | - = help: the following other types implement trait `IsOutputType<S>`: - <bool as IsOutputType<__S>> - <i32 as IsOutputType<__S>> - <f64 as IsOutputType<__S>> - <CharacterValueEnum as IsOutputType<__S>> - <Box<T> as IsOutputType<S>> - <uuid::Uuid as IsOutputType<__S>> - <url::Url as IsOutputType<__S>> - <bson::datetime::DateTime as IsOutputType<__S>> - and $N others + --> fail/interface/struct/attr_field_non_output_return_type.rs:8:1 + | +8 | #[graphql_interface] + | ^^^^^^^^^^^^^^^^^^^^ the trait `IsOutputType<__S>` is not implemented for `ObjB` + | + = help: the following other types implement trait `IsOutputType<S>`: + <bool as IsOutputType<__S>> + <i32 as IsOutputType<__S>> + <f64 as IsOutputType<__S>> + <CharacterValueEnum as IsOutputType<__S>> + <Box<T> as IsOutputType<S>> + <uuid::Uuid as IsOutputType<__S>> + <url::Url as IsOutputType<__S>> + <bson::datetime::DateTime as IsOutputType<__S>> + and $N others diff --git a/tests/codegen/fail/interface/struct/derive_cyclic_impl.stderr b/tests/codegen/fail/interface/struct/derive_cyclic_impl.stderr index 28f960eb..8bed2654 100644 --- a/tests/codegen/fail/interface/struct/derive_cyclic_impl.stderr +++ b/tests/codegen/fail/interface/struct/derive_cyclic_impl.stderr @@ -24,3 +24,4 @@ note: cycle used when collecting item types in top-level module 14 | | 15 | | fn main() {} | |____________^ + = note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information diff --git a/tests/codegen/fail/interface/struct/derive_field_non_output_return_type.stderr b/tests/codegen/fail/interface/struct/derive_field_non_output_return_type.stderr index 8bc3aa0b..d8b5b733 100644 --- a/tests/codegen/fail/interface/struct/derive_field_non_output_return_type.stderr +++ b/tests/codegen/fail/interface/struct/derive_field_non_output_return_type.stderr @@ -1,16 +1,16 @@ error[E0277]: the trait bound `ObjB: IsOutputType<__S>` is not satisfied - --> fail/interface/struct/derive_field_non_output_return_type.rs:10:9 - | -10 | id: ObjB, - | ^^^^ the trait `IsOutputType<__S>` is not implemented for `ObjB` - | - = help: the following other types implement trait `IsOutputType<S>`: - <bool as IsOutputType<__S>> - <i32 as IsOutputType<__S>> - <f64 as IsOutputType<__S>> - <CharacterValueEnum as IsOutputType<__S>> - <Box<T> as IsOutputType<S>> - <uuid::Uuid as IsOutputType<__S>> - <url::Url as IsOutputType<__S>> - <bson::datetime::DateTime as IsOutputType<__S>> - and $N others + --> fail/interface/struct/derive_field_non_output_return_type.rs:8:10 + | +8 | #[derive(GraphQLInterface)] + | ^^^^^^^^^^^^^^^^ the trait `IsOutputType<__S>` is not implemented for `ObjB` + | + = help: the following other types implement trait `IsOutputType<S>`: + <bool as IsOutputType<__S>> + <i32 as IsOutputType<__S>> + <f64 as IsOutputType<__S>> + <CharacterValueEnum as IsOutputType<__S>> + <Box<T> as IsOutputType<S>> + <uuid::Uuid as IsOutputType<__S>> + <url::Url as IsOutputType<__S>> + <bson::datetime::DateTime as IsOutputType<__S>> + and $N others diff --git a/tests/codegen/fail/interface/trait/argument_non_input_type.stderr b/tests/codegen/fail/interface/trait/argument_non_input_type.stderr index 0a143836..b620480b 100644 --- a/tests/codegen/fail/interface/trait/argument_non_input_type.stderr +++ b/tests/codegen/fail/interface/trait/argument_non_input_type.stderr @@ -1,19 +1,19 @@ error[E0277]: the trait bound `ObjA: IsInputType<__S>` is not satisfied - --> fail/interface/trait/argument_non_input_type.rs:10:23 - | -10 | fn id(&self, obj: ObjA) -> &str; - | ^^^^ the trait `IsInputType<__S>` is not implemented for `ObjA` - | - = help: the following other types implement trait `IsInputType<S>`: - <bool as IsInputType<__S>> - <i32 as IsInputType<__S>> - <f64 as IsInputType<__S>> - <Box<T> as IsInputType<S>> - <uuid::Uuid as IsInputType<__S>> - <url::Url as IsInputType<__S>> - <bson::datetime::DateTime as IsInputType<__S>> - <juniper::schema::model::DirectiveLocation as IsInputType<__S>> - and $N others + --> fail/interface/trait/argument_non_input_type.rs:8:1 + | +8 | #[graphql_interface] + | ^^^^^^^^^^^^^^^^^^^^ the trait `IsInputType<__S>` is not implemented for `ObjA` + | + = help: the following other types implement trait `IsInputType<S>`: + <bool as IsInputType<__S>> + <i32 as IsInputType<__S>> + <f64 as IsInputType<__S>> + <Box<T> as IsInputType<S>> + <uuid::Uuid as IsInputType<__S>> + <url::Url as IsInputType<__S>> + <bson::datetime::DateTime as IsInputType<__S>> + <juniper::schema::model::DirectiveLocation as IsInputType<__S>> + and $N others error[E0277]: the trait bound `ObjA: FromInputValue<__S>` is not satisfied --> fail/interface/trait/argument_non_input_type.rs:8:1 diff --git a/tests/codegen/fail/interface/trait/argument_wrong_default_array.stderr b/tests/codegen/fail/interface/trait/argument_wrong_default_array.stderr index d5aa5f0c..d8452fd9 100644 --- a/tests/codegen/fail/interface/trait/argument_wrong_default_array.stderr +++ b/tests/codegen/fail/interface/trait/argument_wrong_default_array.stderr @@ -6,13 +6,13 @@ error[E0277]: the trait bound `[bool; 2]: From<[bool; 3]>` is not satisfied | = help: the following other types implement trait `From<T>`: <[bool; LANES] as From<Mask<T, LANES>>> - <[u32; 4] as From<ppv_lite86::x86_64::vec128_storage>> - <[u32; 8] as From<ppv_lite86::x86_64::vec256_storage>> - <[u32; 16] as From<ppv_lite86::x86_64::vec512_storage>> - <[u64; 2] as From<ppv_lite86::x86_64::vec128_storage>> - <[u64; 4] as From<ppv_lite86::x86_64::vec256_storage>> - <[u64; 8] as From<ppv_lite86::x86_64::vec512_storage>> - <[u128; 1] as From<ppv_lite86::x86_64::vec128_storage>> + <[u32; 4] as From<ppv_lite86::generic::vec128_storage>> + <[u64; 2] as From<ppv_lite86::generic::vec128_storage>> + <[u64; 4] as From<ppv_lite86::generic::vec256_storage>> + <[T; N] as From<Simd<T, N>>> + <[T; 1] as From<(T,)>> + <[T; 2] as From<(T, T)>> + <[T; 3] as From<(T, T, T)>> and $N others = note: required for `[bool; 3]` to implement `Into<[bool; 2]>` = note: this error originates in the attribute macro `graphql_interface` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/tests/codegen/fail/interface/trait/cyclic_impl.stderr b/tests/codegen/fail/interface/trait/cyclic_impl.stderr index 9865861f..151fa2f1 100644 --- a/tests/codegen/fail/interface/trait/cyclic_impl.stderr +++ b/tests/codegen/fail/interface/trait/cyclic_impl.stderr @@ -24,3 +24,4 @@ note: cycle used when collecting item types in top-level module 12 | | 13 | | fn main() {} | |____________^ + = note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information diff --git a/tests/codegen/fail/interface/trait/field_non_output_return_type.stderr b/tests/codegen/fail/interface/trait/field_non_output_return_type.stderr index 5f714086..ca0c5593 100644 --- a/tests/codegen/fail/interface/trait/field_non_output_return_type.stderr +++ b/tests/codegen/fail/interface/trait/field_non_output_return_type.stderr @@ -1,16 +1,16 @@ error[E0277]: the trait bound `ObjB: IsOutputType<__S>` is not satisfied - --> fail/interface/trait/field_non_output_return_type.rs:10:21 - | -10 | fn id(&self) -> ObjB; - | ^^^^ the trait `IsOutputType<__S>` is not implemented for `ObjB` - | - = help: the following other types implement trait `IsOutputType<S>`: - <bool as IsOutputType<__S>> - <i32 as IsOutputType<__S>> - <f64 as IsOutputType<__S>> - <CharacterValueEnum as IsOutputType<__S>> - <Box<T> as IsOutputType<S>> - <uuid::Uuid as IsOutputType<__S>> - <url::Url as IsOutputType<__S>> - <bson::datetime::DateTime as IsOutputType<__S>> - and $N others + --> fail/interface/trait/field_non_output_return_type.rs:8:1 + | +8 | #[graphql_interface] + | ^^^^^^^^^^^^^^^^^^^^ the trait `IsOutputType<__S>` is not implemented for `ObjB` + | + = help: the following other types implement trait `IsOutputType<S>`: + <bool as IsOutputType<__S>> + <i32 as IsOutputType<__S>> + <f64 as IsOutputType<__S>> + <CharacterValueEnum as IsOutputType<__S>> + <Box<T> as IsOutputType<S>> + <uuid::Uuid as IsOutputType<__S>> + <url::Url as IsOutputType<__S>> + <bson::datetime::DateTime as IsOutputType<__S>> + and $N others diff --git a/tests/codegen/fail/object/argument_non_input_type.stderr b/tests/codegen/fail/object/argument_non_input_type.stderr index 5310ce4a..15560aad 100644 --- a/tests/codegen/fail/object/argument_non_input_type.stderr +++ b/tests/codegen/fail/object/argument_non_input_type.stderr @@ -1,8 +1,8 @@ error[E0277]: the trait bound `ObjA: IsInputType<__S>` is not satisfied - --> fail/object/argument_non_input_type.rs:12:23 + --> fail/object/argument_non_input_type.rs:10:1 | -12 | fn id(&self, obj: ObjA) -> &str { - | ^^^^ the trait `IsInputType<__S>` is not implemented for `ObjA` +10 | #[graphql_object] + | ^^^^^^^^^^^^^^^^^ the trait `IsInputType<__S>` is not implemented for `ObjA` | = help: the following other types implement trait `IsInputType<S>`: <bool as IsInputType<__S>> diff --git a/tests/codegen/fail/object/argument_wrong_default_array.stderr b/tests/codegen/fail/object/argument_wrong_default_array.stderr index 04716e21..5f74eea8 100644 --- a/tests/codegen/fail/object/argument_wrong_default_array.stderr +++ b/tests/codegen/fail/object/argument_wrong_default_array.stderr @@ -6,13 +6,13 @@ error[E0277]: the trait bound `[bool; 2]: From<[bool; 3]>` is not satisfied | = help: the following other types implement trait `From<T>`: <[bool; LANES] as From<Mask<T, LANES>>> - <[u32; 4] as From<ppv_lite86::x86_64::vec128_storage>> - <[u32; 8] as From<ppv_lite86::x86_64::vec256_storage>> - <[u32; 16] as From<ppv_lite86::x86_64::vec512_storage>> - <[u64; 2] as From<ppv_lite86::x86_64::vec128_storage>> - <[u64; 4] as From<ppv_lite86::x86_64::vec256_storage>> - <[u64; 8] as From<ppv_lite86::x86_64::vec512_storage>> - <[u128; 1] as From<ppv_lite86::x86_64::vec128_storage>> + <[u32; 4] as From<ppv_lite86::generic::vec128_storage>> + <[u64; 2] as From<ppv_lite86::generic::vec128_storage>> + <[u64; 4] as From<ppv_lite86::generic::vec256_storage>> + <[T; N] as From<Simd<T, N>>> + <[T; 1] as From<(T,)>> + <[T; 2] as From<(T, T)>> + <[T; 3] as From<(T, T, T)>> and $N others = note: required for `[bool; 3]` to implement `Into<[bool; 2]>` = note: this error originates in the attribute macro `graphql_object` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/tests/codegen/fail/object/attr_field_non_output_return_type.stderr b/tests/codegen/fail/object/attr_field_non_output_return_type.stderr index d6fbf56d..1c775851 100644 --- a/tests/codegen/fail/object/attr_field_non_output_return_type.stderr +++ b/tests/codegen/fail/object/attr_field_non_output_return_type.stderr @@ -1,8 +1,8 @@ error[E0277]: the trait bound `ObjB: IsOutputType<__S>` is not satisfied - --> fail/object/attr_field_non_output_return_type.rs:12:21 + --> fail/object/attr_field_non_output_return_type.rs:10:1 | -12 | fn id(&self) -> ObjB { - | ^^^^ the trait `IsOutputType<__S>` is not implemented for `ObjB` +10 | #[graphql_object] + | ^^^^^^^^^^^^^^^^^ the trait `IsOutputType<__S>` is not implemented for `ObjB` | = help: the following other types implement trait `IsOutputType<S>`: <bool as IsOutputType<__S>> diff --git a/tests/codegen/fail/object/derive_field_non_output_return_type.stderr b/tests/codegen/fail/object/derive_field_non_output_return_type.stderr index 75dff2be..ad431c53 100644 --- a/tests/codegen/fail/object/derive_field_non_output_return_type.stderr +++ b/tests/codegen/fail/object/derive_field_non_output_return_type.stderr @@ -1,16 +1,16 @@ error[E0277]: the trait bound `ObjB: IsOutputType<__S>` is not satisfied - --> fail/object/derive_field_non_output_return_type.rs:10:9 - | -10 | id: ObjB, - | ^^^^ the trait `IsOutputType<__S>` is not implemented for `ObjB` - | - = help: the following other types implement trait `IsOutputType<S>`: - <bool as IsOutputType<__S>> - <i32 as IsOutputType<__S>> - <f64 as IsOutputType<__S>> - <ObjA as IsOutputType<__S>> - <Box<T> as IsOutputType<S>> - <uuid::Uuid as IsOutputType<__S>> - <url::Url as IsOutputType<__S>> - <bson::datetime::DateTime as IsOutputType<__S>> - and $N others + --> fail/object/derive_field_non_output_return_type.rs:8:10 + | +8 | #[derive(GraphQLObject)] + | ^^^^^^^^^^^^^ the trait `IsOutputType<__S>` is not implemented for `ObjB` + | + = help: the following other types implement trait `IsOutputType<S>`: + <bool as IsOutputType<__S>> + <i32 as IsOutputType<__S>> + <f64 as IsOutputType<__S>> + <ObjA as IsOutputType<__S>> + <Box<T> as IsOutputType<S>> + <uuid::Uuid as IsOutputType<__S>> + <url::Url as IsOutputType<__S>> + <bson::datetime::DateTime as IsOutputType<__S>> + and $N others diff --git a/tests/codegen/fail/subscription/argument_non_input_type.stderr b/tests/codegen/fail/subscription/argument_non_input_type.stderr index 3e2b9aaa..3d60b095 100644 --- a/tests/codegen/fail/subscription/argument_non_input_type.stderr +++ b/tests/codegen/fail/subscription/argument_non_input_type.stderr @@ -7,10 +7,10 @@ warning: unused variable: `obj` = note: `#[warn(unused_variables)]` on by default error[E0277]: the trait bound `ObjA: IsInputType<__S>` is not satisfied - --> fail/subscription/argument_non_input_type.rs:17:29 + --> fail/subscription/argument_non_input_type.rs:15:1 | -17 | async fn id(&self, obj: ObjA) -> Stream<'static, &'static str> { - | ^^^^ the trait `IsInputType<__S>` is not implemented for `ObjA` +15 | #[graphql_subscription] + | ^^^^^^^^^^^^^^^^^^^^^^^ the trait `IsInputType<__S>` is not implemented for `ObjA` | = help: the following other types implement trait `IsInputType<S>`: <bool as IsInputType<__S>> diff --git a/tests/codegen/fail/subscription/argument_wrong_default_array.stderr b/tests/codegen/fail/subscription/argument_wrong_default_array.stderr index f7618614..563b8b00 100644 --- a/tests/codegen/fail/subscription/argument_wrong_default_array.stderr +++ b/tests/codegen/fail/subscription/argument_wrong_default_array.stderr @@ -6,13 +6,13 @@ error[E0277]: the trait bound `[bool; 2]: From<[bool; 3]>` is not satisfied | = help: the following other types implement trait `From<T>`: <[bool; LANES] as From<Mask<T, LANES>>> - <[u32; 4] as From<ppv_lite86::x86_64::vec128_storage>> - <[u32; 8] as From<ppv_lite86::x86_64::vec256_storage>> - <[u32; 16] as From<ppv_lite86::x86_64::vec512_storage>> - <[u64; 2] as From<ppv_lite86::x86_64::vec128_storage>> - <[u64; 4] as From<ppv_lite86::x86_64::vec256_storage>> - <[u64; 8] as From<ppv_lite86::x86_64::vec512_storage>> - <[u128; 1] as From<ppv_lite86::x86_64::vec128_storage>> + <[u32; 4] as From<ppv_lite86::generic::vec128_storage>> + <[u64; 2] as From<ppv_lite86::generic::vec128_storage>> + <[u64; 4] as From<ppv_lite86::generic::vec256_storage>> + <[T; N] as From<Simd<T, N>>> + <[T; 1] as From<(T,)>> + <[T; 2] as From<(T, T)>> + <[T; 3] as From<(T, T, T)>> and $N others = note: required for `[bool; 3]` to implement `Into<[bool; 2]>` = note: this error originates in the attribute macro `graphql_subscription` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/tests/codegen/fail/subscription/field_non_output_return_type.stderr b/tests/codegen/fail/subscription/field_non_output_return_type.stderr index 2a61125e..5a47e2c7 100644 --- a/tests/codegen/fail/subscription/field_non_output_return_type.stderr +++ b/tests/codegen/fail/subscription/field_non_output_return_type.stderr @@ -1,8 +1,8 @@ error[E0277]: the trait bound `ObjB: IsOutputType<__S>` is not satisfied - --> fail/subscription/field_non_output_return_type.rs:17:27 + --> fail/subscription/field_non_output_return_type.rs:15:1 | -17 | async fn id(&self) -> Stream<'static, ObjB> { - | ^^^^^^^^^^^^^^^^^^^^^ the trait `IsOutputType<__S>` is not implemented for `ObjB` +15 | #[graphql_subscription] + | ^^^^^^^^^^^^^^^^^^^^^^^ the trait `IsOutputType<__S>` is not implemented for `ObjB` | = help: the following other types implement trait `IsOutputType<S>`: <bool as IsOutputType<__S>>