From fb96fb1dd179f98a39bce32db84c466ccb8cf6ec Mon Sep 17 00:00:00 2001 From: tyranron Date: Mon, 9 Sep 2024 15:50:37 +0300 Subject: [PATCH] Update codegen tests for 1.81 Rust --- .../derive_incompatible_field_type.stderr | 64 +++++++++---------- .../attr_field_non_output_return_type.stderr | 16 ++--- ...derive_field_non_output_return_type.stderr | 16 ++--- .../trait/argument_non_input_type.stderr | 32 +++++----- .../trait/argument_wrong_default_array.stderr | 16 ++--- .../trait/field_non_output_return_type.stderr | 16 ++--- .../object/argument_non_input_type.stderr | 64 +++++++++---------- .../argument_wrong_default_array.stderr | 16 ++--- .../attr_field_non_output_return_type.stderr | 16 ++--- ...derive_field_non_output_return_type.stderr | 16 ++--- .../argument_non_input_type.stderr | 64 +++++++++---------- .../argument_wrong_default_array.stderr | 16 ++--- .../field_non_output_return_type.stderr | 16 ++--- .../fail/union/enum_non_object_variant.stderr | 18 +++--- .../fail/union/enum_same_type_ugly.stderr | 36 +++++------ .../union/struct_non_object_variant.stderr | 18 +++--- .../fail/union/struct_same_type_ugly.stderr | 36 +++++------ .../union/trait_fail_infer_context.stderr | 4 +- .../union/trait_non_object_variant.stderr | 18 +++--- .../fail/union/trait_same_type_ugly.stderr | 36 +++++------ 20 files changed, 267 insertions(+), 267 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 a543d389d..f5764d819 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`: - <&T as IsInputType> - as IsInputType> - as IsInputType> - > - > - > - as IsInputType> - <[T; N] as IsInputType> + `&T` implements `IsInputType` + `Arc` implements `IsInputType` + `Box` implements `IsInputType` + `ID` implements `IsInputType<__S>` + `Object` implements `IsInputType<__S>` + `TypeKind` implements `IsInputType<__S>` + `Vec` implements `IsInputType` + `[T; N]` implements `IsInputType` and $N others error[E0277]: the trait bound `ObjectA: FromInputValue<__S>` is not satisfied @@ -25,14 +25,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`: - as FromInputValue> - as FromInputValue> - > - > - > - as FromInputValue> - <[T; N] as FromInputValue> - > + `Arc` implements `FromInputValue` + `Box` implements `FromInputValue` + `ID` implements `FromInputValue<__S>` + `Object` implements `FromInputValue<__S>` + `TypeKind` implements `FromInputValue<__S>` + `Vec` implements `FromInputValue` + `[T; N]` implements `FromInputValue` + `bool` implements `FromInputValue<__S>` and $N others note: required by a bound in `Registry::<'r, S>::arg` --> $WORKSPACE/juniper/src/executor/mod.rs @@ -50,14 +50,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`: - as FromInputValue> - as FromInputValue> - > - > - > - as FromInputValue> - <[T; N] as FromInputValue> - > + `Arc` implements `FromInputValue` + `Box` implements `FromInputValue` + `ID` implements `FromInputValue<__S>` + `Object` implements `FromInputValue<__S>` + `TypeKind` implements `FromInputValue<__S>` + `Vec` implements `FromInputValue` + `[T; N]` implements `FromInputValue` + `bool` implements `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) @@ -68,13 +68,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`: - <&'a T as ToInputValue> - <&'a [T] as ToInputValue> - <&'a str as ToInputValue> - as ToInputValue> - as ToInputValue> - > - > - > + `&'a T` implements `ToInputValue` + `&'a [T]` implements `ToInputValue` + `&'a str` implements `ToInputValue` + `Arc` implements `ToInputValue` + `Box` implements `ToInputValue` + `ID` implements `ToInputValue<__S>` + `Object` implements `ToInputValue<__S>` + `TypeKind` implements `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 24cb231ac..83d0b2aff 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`: - <&T as IsOutputType> - as IsOutputType> - as IsOutputType> - as IsOutputType> - > - > - > - as IsOutputType> + `&T` implements `IsOutputType` + `Arc` implements `IsOutputType` + `Argument<'a, S>` implements `IsOutputType` + `Box` implements `IsOutputType` + `CharacterValueEnum` implements `IsOutputType<__S>` + `EnumValue` implements `IsOutputType<__S>` + `ID` implements `IsOutputType<__S>` + `SchemaType<'a, S>` implements `IsOutputType` 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 1d0f2e044..05c193e15 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`: - <&T as IsOutputType> - as IsOutputType> - as IsOutputType> - as IsOutputType> - > - > - > - as IsOutputType> + `&T` implements `IsOutputType` + `Arc` implements `IsOutputType` + `Argument<'a, S>` implements `IsOutputType` + `Box` implements `IsOutputType` + `CharacterValueEnum` implements `IsOutputType<__S>` + `EnumValue` implements `IsOutputType<__S>` + `ID` implements `IsOutputType<__S>` + `SchemaType<'a, S>` implements `IsOutputType` 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 36c1e0fd8..e59ba502a 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`: - <&T as IsInputType> - as IsInputType> - as IsInputType> - > - > - as IsInputType> - <[T; N] as IsInputType> - <[T] as IsInputType> + `&T` implements `IsInputType` + `Arc` implements `IsInputType` + `Box` implements `IsInputType` + `ID` implements `IsInputType<__S>` + `TypeKind` implements `IsInputType<__S>` + `Vec` implements `IsInputType` + `[T; N]` implements `IsInputType` + `[T]` implements `IsInputType` and $N others error[E0277]: the trait bound `ObjA: FromInputValue<__S>` is not satisfied @@ -25,14 +25,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`: - as FromInputValue> - as FromInputValue> - > - > - as FromInputValue> - <[T; N] as FromInputValue> - > - > + `Arc` implements `FromInputValue` + `Box` implements `FromInputValue` + `ID` implements `FromInputValue<__S>` + `TypeKind` implements `FromInputValue<__S>` + `Vec` implements `FromInputValue` + `[T; N]` implements `FromInputValue` + `bool` implements `FromInputValue<__S>` + `f64` implements `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 e2e802054..9e2101be3 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]`, which is required by `[bool; 3]: Into<_>` | = help: the following other types implement trait `From`: - <[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)>> - <[T; 1] as From<(T,)>> - <[T; 2] as From<(T, T)>> - <[T; 3] as From<(T, T, T)>> - <[T; 4] as From<(T, T, T, T)>> - <[T; 5] as From<(T, T, T, T, T)>> + `[T; 10]` implements `From<(T, T, T, T, T, T, T, T, T, T)>` + `[T; 11]` implements `From<(T, T, T, T, T, T, T, T, T, T, T)>` + `[T; 12]` implements `From<(T, T, T, T, T, T, T, T, T, T, T, T)>` + `[T; 1]` implements `From<(T,)>` + `[T; 2]` implements `From<(T, T)>` + `[T; 3]` implements `From<(T, T, T)>` + `[T; 4]` implements `From<(T, T, T, T)>` + `[T; 5]` implements `From<(T, T, 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/field_non_output_return_type.stderr b/tests/codegen/fail/interface/trait/field_non_output_return_type.stderr index 6a9b4a3c7..503dc603f 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`: - <&T as IsOutputType> - as IsOutputType> - as IsOutputType> - as IsOutputType> - > - > - > - as IsOutputType> + `&T` implements `IsOutputType` + `Arc` implements `IsOutputType` + `Argument<'a, S>` implements `IsOutputType` + `Box` implements `IsOutputType` + `CharacterValueEnum` implements `IsOutputType<__S>` + `EnumValue` implements `IsOutputType<__S>` + `ID` implements `IsOutputType<__S>` + `SchemaType<'a, S>` implements `IsOutputType` 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 6a43297e6..de47b5498 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`: - <&T as IsInputType> - as IsInputType> - as IsInputType> - > - > - as IsInputType> - <[T; N] as IsInputType> - <[T] as IsInputType> + `&T` implements `IsInputType` + `Arc` implements `IsInputType` + `Box` implements `IsInputType` + `ID` implements `IsInputType<__S>` + `TypeKind` implements `IsInputType<__S>` + `Vec` implements `IsInputType` + `[T; N]` implements `IsInputType` + `[T]` implements `IsInputType` and $N others error[E0277]: the trait bound `ObjA: FromInputValue<__S>` is not satisfied @@ -25,14 +25,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`: - as FromInputValue> - as FromInputValue> - > - > - as FromInputValue> - <[T; N] as FromInputValue> - > - > + `Arc` implements `FromInputValue` + `Box` implements `FromInputValue` + `ID` implements `FromInputValue<__S>` + `TypeKind` implements `FromInputValue<__S>` + `Vec` implements `FromInputValue` + `[T; N]` implements `FromInputValue` + `bool` implements `FromInputValue<__S>` + `f64` implements `FromInputValue<__S>` and $N others note: required by a bound in `Registry::<'r, S>::arg` --> $WORKSPACE/juniper/src/executor/mod.rs @@ -50,14 +50,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`: - as FromInputValue> - as FromInputValue> - > - > - as FromInputValue> - <[T; N] as FromInputValue> - > - > + `Arc` implements `FromInputValue` + `Box` implements `FromInputValue` + `ID` implements `FromInputValue<__S>` + `TypeKind` implements `FromInputValue<__S>` + `Vec` implements `FromInputValue` + `[T; N]` implements `FromInputValue` + `bool` implements `FromInputValue<__S>` + `f64` implements `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) @@ -68,14 +68,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`: - as FromInputValue> - as FromInputValue> - > - > - as FromInputValue> - <[T; N] as FromInputValue> - > - > + `Arc` implements `FromInputValue` + `Box` implements `FromInputValue` + `ID` implements `FromInputValue<__S>` + `TypeKind` implements `FromInputValue<__S>` + `Vec` implements `FromInputValue` + `[T; N]` implements `FromInputValue` + `bool` implements `FromInputValue<__S>` + `f64` implements `FromInputValue<__S>` and $N others warning: unused variable: `obj` diff --git a/tests/codegen/fail/object/argument_wrong_default_array.stderr b/tests/codegen/fail/object/argument_wrong_default_array.stderr index 5628a934e..d5944abb1 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]`, which is required by `[bool; 3]: Into<_>` | = help: the following other types implement trait `From`: - <[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)>> - <[T; 1] as From<(T,)>> - <[T; 2] as From<(T, T)>> - <[T; 3] as From<(T, T, T)>> - <[T; 4] as From<(T, T, T, T)>> - <[T; 5] as From<(T, T, T, T, T)>> + `[T; 10]` implements `From<(T, T, T, T, T, T, T, T, T, T)>` + `[T; 11]` implements `From<(T, T, T, T, T, T, T, T, T, T, T)>` + `[T; 12]` implements `From<(T, T, T, T, T, T, T, T, T, T, T, T)>` + `[T; 1]` implements `From<(T,)>` + `[T; 2]` implements `From<(T, T)>` + `[T; 3]` implements `From<(T, T, T)>` + `[T; 4]` implements `From<(T, T, T, T)>` + `[T; 5]` implements `From<(T, T, 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 e7aca50c5..11dffc15f 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`: - <&T as IsOutputType> - as IsOutputType> - as IsOutputType> - as IsOutputType> - > - > - > - as IsOutputType> + `&T` implements `IsOutputType` + `Arc` implements `IsOutputType` + `Argument<'a, S>` implements `IsOutputType` + `Box` implements `IsOutputType` + `EnumValue` implements `IsOutputType<__S>` + `ID` implements `IsOutputType<__S>` + `ObjA` implements `IsOutputType<__S>` + `SchemaType<'a, S>` implements `IsOutputType` 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 4b454bbba..f06516149 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`: - <&T as IsOutputType> - as IsOutputType> - as IsOutputType> - as IsOutputType> - > - > - > - as IsOutputType> + `&T` implements `IsOutputType` + `Arc` implements `IsOutputType` + `Argument<'a, S>` implements `IsOutputType` + `Box` implements `IsOutputType` + `EnumValue` implements `IsOutputType<__S>` + `ID` implements `IsOutputType<__S>` + `ObjA` implements `IsOutputType<__S>` + `SchemaType<'a, S>` implements `IsOutputType` 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 bae8eda02..69463a952 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`: - <&T as IsInputType> - as IsInputType> - as IsInputType> - > - > - as IsInputType> - <[T; N] as IsInputType> - <[T] as IsInputType> + `&T` implements `IsInputType` + `Arc` implements `IsInputType` + `Box` implements `IsInputType` + `ID` implements `IsInputType<__S>` + `TypeKind` implements `IsInputType<__S>` + `Vec` implements `IsInputType` + `[T; N]` implements `IsInputType` + `[T]` implements `IsInputType` and $N others error[E0277]: the trait bound `ObjA: FromInputValue<__S>` is not satisfied @@ -33,14 +33,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`: - as FromInputValue> - as FromInputValue> - > - > - as FromInputValue> - <[T; N] as FromInputValue> - > - > + `Arc` implements `FromInputValue` + `Box` implements `FromInputValue` + `ID` implements `FromInputValue<__S>` + `TypeKind` implements `FromInputValue<__S>` + `Vec` implements `FromInputValue` + `[T; N]` implements `FromInputValue` + `bool` implements `FromInputValue<__S>` + `f64` implements `FromInputValue<__S>` and $N others note: required by a bound in `Registry::<'r, S>::arg` --> $WORKSPACE/juniper/src/executor/mod.rs @@ -58,14 +58,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`: - as FromInputValue> - as FromInputValue> - > - > - as FromInputValue> - <[T; N] as FromInputValue> - > - > + `Arc` implements `FromInputValue` + `Box` implements `FromInputValue` + `ID` implements `FromInputValue<__S>` + `TypeKind` implements `FromInputValue<__S>` + `Vec` implements `FromInputValue` + `[T; N]` implements `FromInputValue` + `bool` implements `FromInputValue<__S>` + `f64` implements `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) @@ -76,12 +76,12 @@ 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`: - as FromInputValue> - as FromInputValue> - > - > - as FromInputValue> - <[T; N] as FromInputValue> - > - > + `Arc` implements `FromInputValue` + `Box` implements `FromInputValue` + `ID` implements `FromInputValue<__S>` + `TypeKind` implements `FromInputValue<__S>` + `Vec` implements `FromInputValue` + `[T; N]` implements `FromInputValue` + `bool` implements `FromInputValue<__S>` + `f64` implements `FromInputValue<__S>` and $N others diff --git a/tests/codegen/fail/subscription/argument_wrong_default_array.stderr b/tests/codegen/fail/subscription/argument_wrong_default_array.stderr index 0f3c65ca0..d822f266f 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]`, which is required by `[bool; 3]: Into<_>` | = help: the following other types implement trait `From`: - <[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)>> - <[T; 1] as From<(T,)>> - <[T; 2] as From<(T, T)>> - <[T; 3] as From<(T, T, T)>> - <[T; 4] as From<(T, T, T, T)>> - <[T; 5] as From<(T, T, T, T, T)>> + `[T; 10]` implements `From<(T, T, T, T, T, T, T, T, T, T)>` + `[T; 11]` implements `From<(T, T, T, T, T, T, T, T, T, T, T)>` + `[T; 12]` implements `From<(T, T, T, T, T, T, T, T, T, T, T, T)>` + `[T; 1]` implements `From<(T,)>` + `[T; 2]` implements `From<(T, T)>` + `[T; 3]` implements `From<(T, T, T)>` + `[T; 4]` implements `From<(T, T, T, T)>` + `[T; 5]` implements `From<(T, T, 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 53114b53a..fbc3506ff 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`: - <&T as IsOutputType> - as IsOutputType> - as IsOutputType> - as IsOutputType> - > - > - > - as IsOutputType> + `&T` implements `IsOutputType` + `Arc` implements `IsOutputType` + `Argument<'a, S>` implements `IsOutputType` + `Box` implements `IsOutputType` + `EnumValue` implements `IsOutputType<__S>` + `ID` implements `IsOutputType<__S>` + `ObjA` implements `IsOutputType<__S>` + `SchemaType<'a, S>` implements `IsOutputType` 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 0713c2dd0..cd515b2d9 100644 --- a/tests/codegen/fail/union/enum_non_object_variant.stderr +++ b/tests/codegen/fail/union/enum_non_object_variant.stderr @@ -5,12 +5,12 @@ 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`: - <&T as GraphQLObject> - as GraphQLObject> - as GraphQLObject> - as GraphQLObject> - > - as GraphQLObject> - as GraphQLObject> - as GraphQLObject> - as GraphQLObject> + `&T` implements `GraphQLObject` + `Arc` implements `GraphQLObject` + `Argument<'a, S>` implements `GraphQLObject` + `Box` implements `GraphQLObject` + `EnumValue` implements `GraphQLObject<__S>` + `SchemaType<'a, S>` implements `GraphQLObject` + `juniper::meta::Field<'a, S>` implements `GraphQLObject` + `juniper::schema::model::DirectiveType<'a, S>` implements `GraphQLObject` + `juniper::schema::model::TypeType<'a, S>` implements `GraphQLObject` diff --git a/tests/codegen/fail/union/enum_same_type_ugly.stderr b/tests/codegen/fail/union/enum_same_type_ugly.stderr index 9b75a0ddc..bf365e189 100644 --- a/tests/codegen/fail/union/enum_same_type_ugly.stderr +++ b/tests/codegen/fail/union/enum_same_type_ugly.stderr @@ -16,15 +16,15 @@ error[E0277]: the trait bound `std::string::String: GraphQLObject<__S>` is not s | ^^^^^^^^^^^^^^^^^^^ the trait `GraphQLObject<__S>` is not implemented for `std::string::String` | = help: the following other types implement trait `GraphQLObject`: - <&T as GraphQLObject> - as GraphQLObject> - as GraphQLObject> - as GraphQLObject> - > - as GraphQLObject> - as GraphQLObject> - as GraphQLObject> - as GraphQLObject> + `&T` implements `GraphQLObject` + `Arc` implements `GraphQLObject` + `Argument<'a, S>` implements `GraphQLObject` + `Box` implements `GraphQLObject` + `EnumValue` implements `GraphQLObject<__S>` + `SchemaType<'a, S>` implements `GraphQLObject` + `juniper::meta::Field<'a, S>` implements `GraphQLObject` + `juniper::schema::model::DirectiveType<'a, S>` implements `GraphQLObject` + `juniper::schema::model::TypeType<'a, S>` implements `GraphQLObject` error[E0277]: the trait bound `std::string::String: GraphQLObject<__S>` is not satisfied --> fail/union/enum_same_type_ugly.rs:6:7 @@ -33,12 +33,12 @@ error[E0277]: the trait bound `std::string::String: GraphQLObject<__S>` is not s | ^^^^^^ the trait `GraphQLObject<__S>` is not implemented for `std::string::String` | = help: the following other types implement trait `GraphQLObject`: - <&T as GraphQLObject> - as GraphQLObject> - as GraphQLObject> - as GraphQLObject> - > - as GraphQLObject> - as GraphQLObject> - as GraphQLObject> - as GraphQLObject> + `&T` implements `GraphQLObject` + `Arc` implements `GraphQLObject` + `Argument<'a, S>` implements `GraphQLObject` + `Box` implements `GraphQLObject` + `EnumValue` implements `GraphQLObject<__S>` + `SchemaType<'a, S>` implements `GraphQLObject` + `juniper::meta::Field<'a, S>` implements `GraphQLObject` + `juniper::schema::model::DirectiveType<'a, S>` implements `GraphQLObject` + `juniper::schema::model::TypeType<'a, S>` implements `GraphQLObject` diff --git a/tests/codegen/fail/union/struct_non_object_variant.stderr b/tests/codegen/fail/union/struct_non_object_variant.stderr index 351dae2d7..00dbbccac 100644 --- a/tests/codegen/fail/union/struct_non_object_variant.stderr +++ b/tests/codegen/fail/union/struct_non_object_variant.stderr @@ -5,12 +5,12 @@ 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`: - <&T as GraphQLObject> - as GraphQLObject> - as GraphQLObject> - as GraphQLObject> - > - as GraphQLObject> - as GraphQLObject> - as GraphQLObject> - as GraphQLObject> + `&T` implements `GraphQLObject` + `Arc` implements `GraphQLObject` + `Argument<'a, S>` implements `GraphQLObject` + `Box` implements `GraphQLObject` + `EnumValue` implements `GraphQLObject<__S>` + `SchemaType<'a, S>` implements `GraphQLObject` + `juniper::meta::Field<'a, S>` implements `GraphQLObject` + `juniper::schema::model::DirectiveType<'a, S>` implements `GraphQLObject` + `juniper::schema::model::TypeType<'a, S>` implements `GraphQLObject` diff --git a/tests/codegen/fail/union/struct_same_type_ugly.stderr b/tests/codegen/fail/union/struct_same_type_ugly.stderr index bc6c8e81f..23ef801cf 100644 --- a/tests/codegen/fail/union/struct_same_type_ugly.stderr +++ b/tests/codegen/fail/union/struct_same_type_ugly.stderr @@ -16,15 +16,15 @@ error[E0277]: the trait bound `std::string::String: GraphQLObject<__S>` is not s | ^^^^^^^^^^^^^^^^^^^ the trait `GraphQLObject<__S>` is not implemented for `std::string::String` | = help: the following other types implement trait `GraphQLObject`: - <&T as GraphQLObject> - as GraphQLObject> - as GraphQLObject> - as GraphQLObject> - > - as GraphQLObject> - as GraphQLObject> - as GraphQLObject> - as GraphQLObject> + `&T` implements `GraphQLObject` + `Arc` implements `GraphQLObject` + `Argument<'a, S>` implements `GraphQLObject` + `Box` implements `GraphQLObject` + `EnumValue` implements `GraphQLObject<__S>` + `SchemaType<'a, S>` implements `GraphQLObject` + `juniper::meta::Field<'a, S>` implements `GraphQLObject` + `juniper::schema::model::DirectiveType<'a, S>` implements `GraphQLObject` + `juniper::schema::model::TypeType<'a, S>` implements `GraphQLObject` error[E0277]: the trait bound `std::string::String: GraphQLObject<__S>` is not satisfied --> fail/union/struct_same_type_ugly.rs:4:14 @@ -33,12 +33,12 @@ error[E0277]: the trait bound `std::string::String: GraphQLObject<__S>` is not s | ^^^^^^ the trait `GraphQLObject<__S>` is not implemented for `std::string::String` | = help: the following other types implement trait `GraphQLObject`: - <&T as GraphQLObject> - as GraphQLObject> - as GraphQLObject> - as GraphQLObject> - > - as GraphQLObject> - as GraphQLObject> - as GraphQLObject> - as GraphQLObject> + `&T` implements `GraphQLObject` + `Arc` implements `GraphQLObject` + `Argument<'a, S>` implements `GraphQLObject` + `Box` implements `GraphQLObject` + `EnumValue` implements `GraphQLObject<__S>` + `SchemaType<'a, S>` implements `GraphQLObject` + `juniper::meta::Field<'a, S>` implements `GraphQLObject` + `juniper::schema::model::DirectiveType<'a, S>` implements `GraphQLObject` + `juniper::schema::model::TypeType<'a, S>` implements `GraphQLObject` diff --git a/tests/codegen/fail/union/trait_fail_infer_context.stderr b/tests/codegen/fail/union/trait_fail_infer_context.stderr index 6073dff25..5d89f66f0 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` is not sa | ^^^^^^^^^^^^^^^^ the trait `FromContext` is not implemented for `CustomContext` | = help: the following other types implement trait `FromContext`: - <() as FromContext> - > + `()` implements `FromContext` + `SubContext` implements `FromContext` = 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 425fdaab1..8008fa28e 100644 --- a/tests/codegen/fail/union/trait_non_object_variant.stderr +++ b/tests/codegen/fail/union/trait_non_object_variant.stderr @@ -5,12 +5,12 @@ 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`: - <&T as GraphQLObject> - as GraphQLObject> - as GraphQLObject> - as GraphQLObject> - > - as GraphQLObject> - as GraphQLObject> - as GraphQLObject> - as GraphQLObject> + `&T` implements `GraphQLObject` + `Arc` implements `GraphQLObject` + `Argument<'a, S>` implements `GraphQLObject` + `Box` implements `GraphQLObject` + `EnumValue` implements `GraphQLObject<__S>` + `SchemaType<'a, S>` implements `GraphQLObject` + `juniper::meta::Field<'a, S>` implements `GraphQLObject` + `juniper::schema::model::DirectiveType<'a, S>` implements `GraphQLObject` + `juniper::schema::model::TypeType<'a, S>` implements `GraphQLObject` diff --git a/tests/codegen/fail/union/trait_same_type_ugly.stderr b/tests/codegen/fail/union/trait_same_type_ugly.stderr index abc2ff278..e017c6ffd 100644 --- a/tests/codegen/fail/union/trait_same_type_ugly.stderr +++ b/tests/codegen/fail/union/trait_same_type_ugly.stderr @@ -16,15 +16,15 @@ error[E0277]: the trait bound `std::string::String: GraphQLObject<__S>` is not s | ^^^^^^ the trait `GraphQLObject<__S>` is not implemented for `std::string::String` | = help: the following other types implement trait `GraphQLObject`: - <&T as GraphQLObject> - as GraphQLObject> - as GraphQLObject> - as GraphQLObject> - > - as GraphQLObject> - as GraphQLObject> - as GraphQLObject> - as GraphQLObject> + `&T` implements `GraphQLObject` + `Arc` implements `GraphQLObject` + `Argument<'a, S>` implements `GraphQLObject` + `Box` implements `GraphQLObject` + `EnumValue` implements `GraphQLObject<__S>` + `SchemaType<'a, S>` implements `GraphQLObject` + `juniper::meta::Field<'a, S>` implements `GraphQLObject` + `juniper::schema::model::DirectiveType<'a, S>` implements `GraphQLObject` + `juniper::schema::model::TypeType<'a, S>` implements `GraphQLObject` error[E0277]: the trait bound `std::string::String: GraphQLObject<__S>` is not satisfied --> fail/union/trait_same_type_ugly.rs:6:28 @@ -33,12 +33,12 @@ error[E0277]: the trait bound `std::string::String: GraphQLObject<__S>` is not s | ^^^^^^^^^^^^^^^^^^^ the trait `GraphQLObject<__S>` is not implemented for `std::string::String` | = help: the following other types implement trait `GraphQLObject`: - <&T as GraphQLObject> - as GraphQLObject> - as GraphQLObject> - as GraphQLObject> - > - as GraphQLObject> - as GraphQLObject> - as GraphQLObject> - as GraphQLObject> + `&T` implements `GraphQLObject` + `Arc` implements `GraphQLObject` + `Argument<'a, S>` implements `GraphQLObject` + `Box` implements `GraphQLObject` + `EnumValue` implements `GraphQLObject<__S>` + `SchemaType<'a, S>` implements `GraphQLObject` + `juniper::meta::Field<'a, S>` implements `GraphQLObject` + `juniper::schema::model::DirectiveType<'a, S>` implements `GraphQLObject` + `juniper::schema::model::TypeType<'a, S>` implements `GraphQLObject`