From a297b9b67e0b07e37ca52aa1b093b8ab4988c7c3 Mon Sep 17 00:00:00 2001 From: tyranron <tyranron@gmail.com> Date: Mon, 10 Jul 2023 14:13:05 +0300 Subject: [PATCH] Fix codegen tests for latest nightly --- .../derive_incompatible_field_type.stderr | 56 +++++++++---------- .../attr_field_non_output_return_type.stderr | 14 ++--- ...derive_field_non_output_return_type.stderr | 14 ++--- .../trait/argument_non_input_type.stderr | 26 ++++----- .../trait/argument_wrong_default_array.stderr | 16 +++--- .../trait/field_non_output_return_type.stderr | 14 ++--- .../object/argument_non_input_type.stderr | 38 ++++++------- .../argument_wrong_default_array.stderr | 16 +++--- .../attr_field_non_output_return_type.stderr | 14 ++--- ...derive_field_non_output_return_type.stderr | 14 ++--- .../argument_non_input_type.stderr | 38 ++++++------- .../argument_wrong_default_array.stderr | 16 +++--- .../field_non_output_return_type.stderr | 14 ++--- .../fail/union/enum_non_object_variant.stderr | 10 ++-- .../union/struct_non_object_variant.stderr | 10 ++-- .../union/trait_fail_infer_context.stderr | 2 +- .../union/trait_non_object_variant.stderr | 10 ++-- 17 files changed, 161 insertions(+), 161 deletions(-) diff --git a/tests/codegen/fail/input-object/derive_incompatible_field_type.stderr b/tests/codegen/fail/input-object/derive_incompatible_field_type.stderr index a92b134d..46abf94a 100644 --- a/tests/codegen/fail/input-object/derive_incompatible_field_type.stderr +++ b/tests/codegen/fail/input-object/derive_incompatible_field_type.stderr @@ -5,14 +5,14 @@ error[E0277]: the trait bound `ObjectA: IsInputType<__S>` is not satisfied | ^^^^^^^^^^^^^^^^^^ the trait `IsInputType<__S>` is not implemented for `ObjectA` | = help: the following other types implement trait `IsInputType<S>`: - <&T as IsInputType<S>> - <Arc<T> as IsInputType<S>> - <Box<T> as IsInputType<S>> - <ID as IsInputType<__S>> + <bool as IsInputType<__S>> + <i32 as IsInputType<__S>> + <f64 as IsInputType<__S>> <Object as IsInputType<__S>> - <TypeKind as IsInputType<__S>> - <Vec<T> as IsInputType<S>> - <[T; N] as IsInputType<S>> + <Box<T> as IsInputType<S>> + <uuid::Uuid as IsInputType<__S>> + <url::Url as IsInputType<__S>> + <bson::datetime::DateTime as IsInputType<__S>> and $N others = note: this error originates in the derive macro `GraphQLInputObject` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -23,14 +23,14 @@ error[E0277]: the trait bound `ObjectA: FromInputValue<__S>` is not satisfied | ^^^^^^^^^^^^^^^^^^ the trait `FromInputValue<__S>` is not implemented for `ObjectA` | = help: the following other types implement trait `FromInputValue<S>`: - <Arc<T> as FromInputValue<S>> - <Box<T> as FromInputValue<S>> - <ID as FromInputValue<__S>> - <Object as FromInputValue<__S>> - <TypeKind as FromInputValue<__S>> - <Vec<T> as FromInputValue<S>> - <[T; N] as FromInputValue<S>> <bool as FromInputValue<__S>> + <i32 as FromInputValue<__S>> + <f64 as FromInputValue<__S>> + <Object as FromInputValue<__S>> + <Box<T> as FromInputValue<S>> + <uuid::Uuid as FromInputValue<__S>> + <url::Url as FromInputValue<__S>> + <bson::datetime::DateTime as FromInputValue<__S>> and $N others note: required by a bound in `Registry::<'r, S>::arg` --> $WORKSPACE/juniper/src/executor/mod.rs @@ -49,14 +49,14 @@ error[E0277]: the trait bound `ObjectA: FromInputValue<__S>` is not satisfied | ^^^^^^^^^^^^^^^^^^ the trait `FromInputValue<__S>` is not implemented for `ObjectA` | = help: the following other types implement trait `FromInputValue<S>`: - <Arc<T> as FromInputValue<S>> - <Box<T> as FromInputValue<S>> - <ID as FromInputValue<__S>> - <Object as FromInputValue<__S>> - <TypeKind as FromInputValue<__S>> - <Vec<T> as FromInputValue<S>> - <[T; N] as FromInputValue<S>> <bool as FromInputValue<__S>> + <i32 as FromInputValue<__S>> + <f64 as FromInputValue<__S>> + <Object as FromInputValue<__S>> + <Box<T> as FromInputValue<S>> + <uuid::Uuid as FromInputValue<__S>> + <url::Url as FromInputValue<__S>> + <bson::datetime::DateTime as FromInputValue<__S>> and $N others = note: this error originates in the derive macro `GraphQLInputObject` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -67,13 +67,13 @@ error[E0277]: the trait bound `ObjectA: ToInputValue<_>` is not satisfied | ^^^^^^^^^^^^^^^^^^ the trait `ToInputValue<_>` is not implemented for `ObjectA` | = help: the following other types implement trait `ToInputValue<S>`: - <&'a T as ToInputValue<S>> - <&'a [T] as ToInputValue<S>> - <&'a str as ToInputValue<S>> - <Arc<T> as ToInputValue<S>> - <Box<T> as ToInputValue<S>> - <ID as ToInputValue<__S>> + <bool as ToInputValue<__S>> + <i32 as ToInputValue<__S>> + <f64 as ToInputValue<__S>> <Object as ToInputValue<__S>> - <TypeKind as ToInputValue<__S>> + <Box<T> as ToInputValue<S>> + <uuid::Uuid as ToInputValue<__S>> + <url::Url as ToInputValue<__S>> + <bson::datetime::DateTime as ToInputValue<__S>> and $N others = note: this error originates in the derive macro `GraphQLInputObject` (in Nightly builds, run with -Z macro-backtrace for more info) 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 1a09b89d..f2d975b2 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 @@ -5,12 +5,12 @@ error[E0277]: the trait bound `ObjB: IsOutputType<__S>` is not satisfied | ^^^^ the trait `IsOutputType<__S>` is not implemented for `ObjB` | = help: the following other types implement trait `IsOutputType<S>`: - <&T as IsOutputType<S>> - <Arc<T> as IsOutputType<S>> - <Argument<'a, S> as IsOutputType<S>> - <Box<T> as IsOutputType<S>> + <bool as IsOutputType<__S>> + <i32 as IsOutputType<__S>> + <f64 as IsOutputType<__S>> <CharacterValueEnum as IsOutputType<__S>> - <EnumValue as IsOutputType<__S>> - <ID as IsOutputType<__S>> - <SchemaType<'a, S> 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_field_non_output_return_type.stderr b/tests/codegen/fail/interface/struct/derive_field_non_output_return_type.stderr index 85ec8e27..8bc3aa0b 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 @@ -5,12 +5,12 @@ error[E0277]: the trait bound `ObjB: IsOutputType<__S>` is not satisfied | ^^^^ the trait `IsOutputType<__S>` is not implemented for `ObjB` | = help: the following other types implement trait `IsOutputType<S>`: - <&T as IsOutputType<S>> - <Arc<T> as IsOutputType<S>> - <Argument<'a, S> as IsOutputType<S>> - <Box<T> as IsOutputType<S>> + <bool as IsOutputType<__S>> + <i32 as IsOutputType<__S>> + <f64 as IsOutputType<__S>> <CharacterValueEnum as IsOutputType<__S>> - <EnumValue as IsOutputType<__S>> - <ID as IsOutputType<__S>> - <SchemaType<'a, S> 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 86291032..0a143836 100644 --- a/tests/codegen/fail/interface/trait/argument_non_input_type.stderr +++ b/tests/codegen/fail/interface/trait/argument_non_input_type.stderr @@ -5,14 +5,14 @@ error[E0277]: the trait bound `ObjA: IsInputType<__S>` is not satisfied | ^^^^ the trait `IsInputType<__S>` is not implemented for `ObjA` | = help: the following other types implement trait `IsInputType<S>`: - <&T as IsInputType<S>> - <Arc<T> as IsInputType<S>> + <bool as IsInputType<__S>> + <i32 as IsInputType<__S>> + <f64 as IsInputType<__S>> <Box<T> as IsInputType<S>> - <ID as IsInputType<__S>> - <TypeKind as IsInputType<__S>> - <Vec<T> as IsInputType<S>> - <[T; N] as IsInputType<S>> - <[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 @@ -22,14 +22,14 @@ error[E0277]: the trait bound `ObjA: FromInputValue<__S>` is not satisfied | ^^^^^^^^^^^^^^^^^^^^ the trait `FromInputValue<__S>` is not implemented for `ObjA` | = help: the following other types implement trait `FromInputValue<S>`: - <Arc<T> as FromInputValue<S>> - <Box<T> as FromInputValue<S>> - <ID as FromInputValue<__S>> - <TypeKind as FromInputValue<__S>> - <Vec<T> as FromInputValue<S>> - <[T; N] as FromInputValue<S>> <bool as FromInputValue<__S>> + <i32 as FromInputValue<__S>> + <f64 as FromInputValue<__S>> + <Box<T> as FromInputValue<S>> + <uuid::Uuid as FromInputValue<__S>> + <url::Url as FromInputValue<__S>> <bson::datetime::DateTime as FromInputValue<__S>> + <juniper::schema::model::DirectiveLocation as FromInputValue<__S>> and $N others note: required by a bound in `Registry::<'r, S>::arg` --> $WORKSPACE/juniper/src/executor/mod.rs 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 4d015af7..d5aa5f0c 100644 --- a/tests/codegen/fail/interface/trait/argument_wrong_default_array.stderr +++ b/tests/codegen/fail/interface/trait/argument_wrong_default_array.stderr @@ -5,14 +5,14 @@ error[E0277]: the trait bound `[bool; 2]: From<[bool; 3]>` is not satisfied | ^^^^^^^^^^^^^^^^^^^^ the trait `From<[bool; 3]>` is not implemented for `[bool; 2]` | = help: the following other types implement trait `From<T>`: - <&'a [ascii::ascii_char::AsciiChar] as From<&'a ascii::ascii_str::AsciiStr>> - <&'a [u32; 4] as From<&'a ppv_lite86::x86_64::vec128_storage>> - <&'a [u8] as From<&'a ascii::ascii_str::AsciiStr>> - <&'a mut [ascii::ascii_char::AsciiChar] as From<&'a mut ascii::ascii_str::AsciiStr>> - <&'input [u8] as From<gimli::read::endian_slice::EndianSlice<'input, Endian>>> - <[T; 10] as From<(T, T, T, T, T, T, T, T, T, T)>> - <[T; 11] as From<(T, T, T, T, T, T, T, T, T, T, T)>> - <[T; 12] as From<(T, T, T, T, T, T, T, T, T, T, T, 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>> 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/field_non_output_return_type.stderr b/tests/codegen/fail/interface/trait/field_non_output_return_type.stderr index 8cf4d4be..5f714086 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 @@ -5,12 +5,12 @@ error[E0277]: the trait bound `ObjB: IsOutputType<__S>` is not satisfied | ^^^^ the trait `IsOutputType<__S>` is not implemented for `ObjB` | = help: the following other types implement trait `IsOutputType<S>`: - <&T as IsOutputType<S>> - <Arc<T> as IsOutputType<S>> - <Argument<'a, S> as IsOutputType<S>> - <Box<T> as IsOutputType<S>> + <bool as IsOutputType<__S>> + <i32 as IsOutputType<__S>> + <f64 as IsOutputType<__S>> <CharacterValueEnum as IsOutputType<__S>> - <EnumValue as IsOutputType<__S>> - <ID as IsOutputType<__S>> - <SchemaType<'a, S> 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 459ed680..5310ce4a 100644 --- a/tests/codegen/fail/object/argument_non_input_type.stderr +++ b/tests/codegen/fail/object/argument_non_input_type.stderr @@ -5,14 +5,14 @@ error[E0277]: the trait bound `ObjA: IsInputType<__S>` is not satisfied | ^^^^ the trait `IsInputType<__S>` is not implemented for `ObjA` | = help: the following other types implement trait `IsInputType<S>`: - <&T as IsInputType<S>> - <Arc<T> as IsInputType<S>> + <bool as IsInputType<__S>> + <i32 as IsInputType<__S>> + <f64 as IsInputType<__S>> <Box<T> as IsInputType<S>> - <ID as IsInputType<__S>> - <TypeKind as IsInputType<__S>> - <Vec<T> as IsInputType<S>> - <[T; N] as IsInputType<S>> - <[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 @@ -22,14 +22,14 @@ error[E0277]: the trait bound `ObjA: FromInputValue<__S>` is not satisfied | ^^^^^^^^^^^^^^^^^ the trait `FromInputValue<__S>` is not implemented for `ObjA` | = help: the following other types implement trait `FromInputValue<S>`: - <Arc<T> as FromInputValue<S>> - <Box<T> as FromInputValue<S>> - <ID as FromInputValue<__S>> - <TypeKind as FromInputValue<__S>> - <Vec<T> as FromInputValue<S>> - <[T; N] as FromInputValue<S>> <bool as FromInputValue<__S>> + <i32 as FromInputValue<__S>> + <f64 as FromInputValue<__S>> + <Box<T> as FromInputValue<S>> + <uuid::Uuid as FromInputValue<__S>> + <url::Url as FromInputValue<__S>> <bson::datetime::DateTime as FromInputValue<__S>> + <juniper::schema::model::DirectiveLocation as FromInputValue<__S>> and $N others note: required by a bound in `Registry::<'r, S>::arg` --> $WORKSPACE/juniper/src/executor/mod.rs @@ -48,13 +48,13 @@ error[E0277]: the trait bound `ObjA: FromInputValue<__S>` is not satisfied | ^^^^^^^^^^^^^^^^^ the trait `FromInputValue<__S>` is not implemented for `ObjA` | = help: the following other types implement trait `FromInputValue<S>`: - <Arc<T> as FromInputValue<S>> - <Box<T> as FromInputValue<S>> - <ID as FromInputValue<__S>> - <TypeKind as FromInputValue<__S>> - <Vec<T> as FromInputValue<S>> - <[T; N] as FromInputValue<S>> <bool as FromInputValue<__S>> + <i32 as FromInputValue<__S>> + <f64 as FromInputValue<__S>> + <Box<T> as FromInputValue<S>> + <uuid::Uuid as FromInputValue<__S>> + <url::Url as FromInputValue<__S>> <bson::datetime::DateTime as FromInputValue<__S>> + <juniper::schema::model::DirectiveLocation as FromInputValue<__S>> and $N others = 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/argument_wrong_default_array.stderr b/tests/codegen/fail/object/argument_wrong_default_array.stderr index 57754113..04716e21 100644 --- a/tests/codegen/fail/object/argument_wrong_default_array.stderr +++ b/tests/codegen/fail/object/argument_wrong_default_array.stderr @@ -5,14 +5,14 @@ error[E0277]: the trait bound `[bool; 2]: From<[bool; 3]>` is not satisfied | ^^^^^^^^^^^^^^^^^ the trait `From<[bool; 3]>` is not implemented for `[bool; 2]` | = help: the following other types implement trait `From<T>`: - <&'a [ascii::ascii_char::AsciiChar] as From<&'a ascii::ascii_str::AsciiStr>> - <&'a [u32; 4] as From<&'a ppv_lite86::x86_64::vec128_storage>> - <&'a [u8] as From<&'a ascii::ascii_str::AsciiStr>> - <&'a mut [ascii::ascii_char::AsciiChar] as From<&'a mut ascii::ascii_str::AsciiStr>> - <&'input [u8] as From<gimli::read::endian_slice::EndianSlice<'input, Endian>>> - <[T; 10] as From<(T, T, T, T, T, T, T, T, T, T)>> - <[T; 11] as From<(T, T, T, T, T, T, T, T, T, T, T)>> - <[T; 12] as From<(T, T, T, T, T, T, T, T, T, T, T, 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>> 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 70ab4f8e..d6fbf56d 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 @@ -5,12 +5,12 @@ error[E0277]: the trait bound `ObjB: IsOutputType<__S>` is not satisfied | ^^^^ the trait `IsOutputType<__S>` is not implemented for `ObjB` | = help: the following other types implement trait `IsOutputType<S>`: - <&T as IsOutputType<S>> - <Arc<T> as IsOutputType<S>> - <Argument<'a, S> as IsOutputType<S>> - <Box<T> as IsOutputType<S>> - <EnumValue as IsOutputType<__S>> - <ID as IsOutputType<__S>> + <bool as IsOutputType<__S>> + <i32 as IsOutputType<__S>> + <f64 as IsOutputType<__S>> <ObjA as IsOutputType<__S>> - <SchemaType<'a, S> 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/derive_field_non_output_return_type.stderr b/tests/codegen/fail/object/derive_field_non_output_return_type.stderr index 29cb7960..75dff2be 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 @@ -5,12 +5,12 @@ error[E0277]: the trait bound `ObjB: IsOutputType<__S>` is not satisfied | ^^^^ the trait `IsOutputType<__S>` is not implemented for `ObjB` | = help: the following other types implement trait `IsOutputType<S>`: - <&T as IsOutputType<S>> - <Arc<T> as IsOutputType<S>> - <Argument<'a, S> as IsOutputType<S>> - <Box<T> as IsOutputType<S>> - <EnumValue as IsOutputType<__S>> - <ID as IsOutputType<__S>> + <bool as IsOutputType<__S>> + <i32 as IsOutputType<__S>> + <f64 as IsOutputType<__S>> <ObjA as IsOutputType<__S>> - <SchemaType<'a, S> 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 510f6ef2..3e2b9aaa 100644 --- a/tests/codegen/fail/subscription/argument_non_input_type.stderr +++ b/tests/codegen/fail/subscription/argument_non_input_type.stderr @@ -13,14 +13,14 @@ error[E0277]: the trait bound `ObjA: IsInputType<__S>` is not satisfied | ^^^^ the trait `IsInputType<__S>` is not implemented for `ObjA` | = help: the following other types implement trait `IsInputType<S>`: - <&T as IsInputType<S>> - <Arc<T> as IsInputType<S>> + <bool as IsInputType<__S>> + <i32 as IsInputType<__S>> + <f64 as IsInputType<__S>> <Box<T> as IsInputType<S>> - <ID as IsInputType<__S>> - <TypeKind as IsInputType<__S>> - <Vec<T> as IsInputType<S>> - <[T; N] as IsInputType<S>> - <[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 @@ -30,14 +30,14 @@ error[E0277]: the trait bound `ObjA: FromInputValue<__S>` is not satisfied | ^^^^^^^^^^^^^^^^^^^^^^^ the trait `FromInputValue<__S>` is not implemented for `ObjA` | = help: the following other types implement trait `FromInputValue<S>`: - <Arc<T> as FromInputValue<S>> - <Box<T> as FromInputValue<S>> - <ID as FromInputValue<__S>> - <TypeKind as FromInputValue<__S>> - <Vec<T> as FromInputValue<S>> - <[T; N] as FromInputValue<S>> <bool as FromInputValue<__S>> + <i32 as FromInputValue<__S>> + <f64 as FromInputValue<__S>> + <Box<T> as FromInputValue<S>> + <uuid::Uuid as FromInputValue<__S>> + <url::Url as FromInputValue<__S>> <bson::datetime::DateTime as FromInputValue<__S>> + <juniper::schema::model::DirectiveLocation as FromInputValue<__S>> and $N others note: required by a bound in `Registry::<'r, S>::arg` --> $WORKSPACE/juniper/src/executor/mod.rs @@ -56,13 +56,13 @@ error[E0277]: the trait bound `ObjA: FromInputValue<__S>` is not satisfied | ^^^^^^^^^^^^^^^^^^^^^^^ the trait `FromInputValue<__S>` is not implemented for `ObjA` | = help: the following other types implement trait `FromInputValue<S>`: - <Arc<T> as FromInputValue<S>> - <Box<T> as FromInputValue<S>> - <ID as FromInputValue<__S>> - <TypeKind as FromInputValue<__S>> - <Vec<T> as FromInputValue<S>> - <[T; N] as FromInputValue<S>> <bool as FromInputValue<__S>> + <i32 as FromInputValue<__S>> + <f64 as FromInputValue<__S>> + <Box<T> as FromInputValue<S>> + <uuid::Uuid as FromInputValue<__S>> + <url::Url as FromInputValue<__S>> <bson::datetime::DateTime as FromInputValue<__S>> + <juniper::schema::model::DirectiveLocation as FromInputValue<__S>> and $N others = 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/argument_wrong_default_array.stderr b/tests/codegen/fail/subscription/argument_wrong_default_array.stderr index c8db7559..f7618614 100644 --- a/tests/codegen/fail/subscription/argument_wrong_default_array.stderr +++ b/tests/codegen/fail/subscription/argument_wrong_default_array.stderr @@ -5,14 +5,14 @@ error[E0277]: the trait bound `[bool; 2]: From<[bool; 3]>` is not satisfied | ^^^^^^^^^^^^^^^^^^^^^^^ the trait `From<[bool; 3]>` is not implemented for `[bool; 2]` | = help: the following other types implement trait `From<T>`: - <&'a [ascii::ascii_char::AsciiChar] as From<&'a ascii::ascii_str::AsciiStr>> - <&'a [u32; 4] as From<&'a ppv_lite86::x86_64::vec128_storage>> - <&'a [u8] as From<&'a ascii::ascii_str::AsciiStr>> - <&'a mut [ascii::ascii_char::AsciiChar] as From<&'a mut ascii::ascii_str::AsciiStr>> - <&'input [u8] as From<gimli::read::endian_slice::EndianSlice<'input, Endian>>> - <[T; 10] as From<(T, T, T, T, T, T, T, T, T, T)>> - <[T; 11] as From<(T, T, T, T, T, T, T, T, T, T, T)>> - <[T; 12] as From<(T, T, T, T, T, T, T, T, T, T, T, 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>> 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 0665af98..2a61125e 100644 --- a/tests/codegen/fail/subscription/field_non_output_return_type.stderr +++ b/tests/codegen/fail/subscription/field_non_output_return_type.stderr @@ -5,12 +5,12 @@ error[E0277]: the trait bound `ObjB: IsOutputType<__S>` is not satisfied | ^^^^^^^^^^^^^^^^^^^^^ the trait `IsOutputType<__S>` is not implemented for `ObjB` | = help: the following other types implement trait `IsOutputType<S>`: - <&T as IsOutputType<S>> - <Arc<T> as IsOutputType<S>> - <Argument<'a, S> as IsOutputType<S>> - <Box<T> as IsOutputType<S>> - <EnumValue as IsOutputType<__S>> - <ID as IsOutputType<__S>> + <bool as IsOutputType<__S>> + <i32 as IsOutputType<__S>> + <f64 as IsOutputType<__S>> <ObjA as IsOutputType<__S>> - <SchemaType<'a, S> 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/union/enum_non_object_variant.stderr b/tests/codegen/fail/union/enum_non_object_variant.stderr index fe447651..3e75bb5a 100644 --- a/tests/codegen/fail/union/enum_non_object_variant.stderr +++ b/tests/codegen/fail/union/enum_non_object_variant.stderr @@ -5,13 +5,13 @@ error[E0277]: the trait bound `Test: GraphQLObject<__S>` is not satisfied | ^^^^^^^^^^^^ the trait `GraphQLObject<__S>` is not implemented for `Test` | = help: the following other types implement trait `GraphQLObject<S>`: - <&T as GraphQLObject<S>> - <Arc<T> as GraphQLObject<S>> - <Argument<'a, S> as GraphQLObject<S>> <Box<T> as GraphQLObject<S>> + <juniper::meta::Field<'a, S> as GraphQLObject<S>> + <Argument<'a, S> as GraphQLObject<S>> <EnumValue as GraphQLObject<__S>> <SchemaType<'a, S> as GraphQLObject<S>> - <juniper::meta::Field<'a, S> as GraphQLObject<S>> - <juniper::schema::model::DirectiveType<'a, S> as GraphQLObject<S>> <juniper::schema::model::TypeType<'a, S> as GraphQLObject<S>> + <juniper::schema::model::DirectiveType<'a, S> as GraphQLObject<S>> + <Arc<T> as GraphQLObject<S>> + <&T as GraphQLObject<S>> = note: this error originates in the derive macro `GraphQLUnion` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/tests/codegen/fail/union/struct_non_object_variant.stderr b/tests/codegen/fail/union/struct_non_object_variant.stderr index 3f928a25..ebbb6a18 100644 --- a/tests/codegen/fail/union/struct_non_object_variant.stderr +++ b/tests/codegen/fail/union/struct_non_object_variant.stderr @@ -5,13 +5,13 @@ error[E0277]: the trait bound `Test: GraphQLObject<__S>` is not satisfied | ^^^^^^^^^^^^ the trait `GraphQLObject<__S>` is not implemented for `Test` | = help: the following other types implement trait `GraphQLObject<S>`: - <&T as GraphQLObject<S>> - <Arc<T> as GraphQLObject<S>> - <Argument<'a, S> as GraphQLObject<S>> <Box<T> as GraphQLObject<S>> + <juniper::meta::Field<'a, S> as GraphQLObject<S>> + <Argument<'a, S> as GraphQLObject<S>> <EnumValue as GraphQLObject<__S>> <SchemaType<'a, S> as GraphQLObject<S>> - <juniper::meta::Field<'a, S> as GraphQLObject<S>> - <juniper::schema::model::DirectiveType<'a, S> as GraphQLObject<S>> <juniper::schema::model::TypeType<'a, S> as GraphQLObject<S>> + <juniper::schema::model::DirectiveType<'a, S> as GraphQLObject<S>> + <Arc<T> as GraphQLObject<S>> + <&T as GraphQLObject<S>> = note: this error originates in the derive macro `GraphQLUnion` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/tests/codegen/fail/union/trait_fail_infer_context.stderr b/tests/codegen/fail/union/trait_fail_infer_context.stderr index 6073dff2..1da40a35 100644 --- a/tests/codegen/fail/union/trait_fail_infer_context.stderr +++ b/tests/codegen/fail/union/trait_fail_infer_context.stderr @@ -5,8 +5,8 @@ error[E0277]: the trait bound `CustomContext: FromContext<SubContext>` is not sa | ^^^^^^^^^^^^^^^^ the trait `FromContext<SubContext>` is not implemented for `CustomContext` | = help: the following other types implement trait `FromContext<T>`: - <() as FromContext<T>> <SubContext as FromContext<CustomContext>> + <() as FromContext<T>> = note: this error originates in the attribute macro `graphql_union` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0308]: mismatched types diff --git a/tests/codegen/fail/union/trait_non_object_variant.stderr b/tests/codegen/fail/union/trait_non_object_variant.stderr index 7e1f12fa..6ff1aeb9 100644 --- a/tests/codegen/fail/union/trait_non_object_variant.stderr +++ b/tests/codegen/fail/union/trait_non_object_variant.stderr @@ -5,13 +5,13 @@ error[E0277]: the trait bound `Test: GraphQLObject<__S>` is not satisfied | ^^^^^^^^^^^^^^^^ the trait `GraphQLObject<__S>` is not implemented for `Test` | = help: the following other types implement trait `GraphQLObject<S>`: - <&T as GraphQLObject<S>> - <Arc<T> as GraphQLObject<S>> - <Argument<'a, S> as GraphQLObject<S>> <Box<T> as GraphQLObject<S>> + <juniper::meta::Field<'a, S> as GraphQLObject<S>> + <Argument<'a, S> as GraphQLObject<S>> <EnumValue as GraphQLObject<__S>> <SchemaType<'a, S> as GraphQLObject<S>> - <juniper::meta::Field<'a, S> as GraphQLObject<S>> - <juniper::schema::model::DirectiveType<'a, S> as GraphQLObject<S>> <juniper::schema::model::TypeType<'a, S> as GraphQLObject<S>> + <juniper::schema::model::DirectiveType<'a, S> as GraphQLObject<S>> + <Arc<T> as GraphQLObject<S>> + <&T as GraphQLObject<S>> = note: this error originates in the attribute macro `graphql_union` (in Nightly builds, run with -Z macro-backtrace for more info)