Fix codegen tests for 1.74 Rust

This commit is contained in:
tyranron 2023-11-16 21:00:53 +01:00
parent 316b1887b2
commit a515d4b8b9
No known key found for this signature in database
GPG key ID: 762E144FB230A4F0
13 changed files with 220 additions and 182 deletions

View file

@ -1,8 +1,8 @@
error[E0277]: the trait bound `ObjectA: IsInputType<__S>` is not satisfied error[E0277]: the trait bound `ObjectA: IsInputType<__S>` is not satisfied
--> fail/input-object/derive_incompatible_field_type.rs:8:10 --> fail/input-object/derive_incompatible_field_type.rs:10:12
| |
8 | #[derive(GraphQLInputObject)] 10 | field: ObjectA,
| ^^^^^^^^^^^^^^^^^^ the trait `IsInputType<__S>` is not implemented for `ObjectA` | ^^^^^^^ the trait `IsInputType<__S>` is not implemented for `ObjectA`
| |
= help: the following other types implement trait `IsInputType<S>`: = help: the following other types implement trait `IsInputType<S>`:
<bool as IsInputType<__S>> <bool as IsInputType<__S>>
@ -14,13 +14,15 @@ error[E0277]: the trait bound `ObjectA: IsInputType<__S>` is not satisfied
<url::Url as IsInputType<__S>> <url::Url as IsInputType<__S>>
<bson::datetime::DateTime as IsInputType<__S>> <bson::datetime::DateTime as IsInputType<__S>>
and $N others and $N others
= note: this error originates in the derive macro `GraphQLInputObject` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `ObjectA: FromInputValue<__S>` is not satisfied error[E0277]: the trait bound `ObjectA: FromInputValue<__S>` is not satisfied
--> fail/input-object/derive_incompatible_field_type.rs:8:10 --> fail/input-object/derive_incompatible_field_type.rs:10:12
| |
8 | #[derive(GraphQLInputObject)] 8 | #[derive(GraphQLInputObject)]
| ^^^^^^^^^^^^^^^^^^ the trait `FromInputValue<__S>` is not implemented for `ObjectA` | ------------------ required by a bound introduced by this call
9 | struct Object {
10 | field: ObjectA,
| ^^^^^^^ the trait `FromInputValue<__S>` is not implemented for `ObjectA`
| |
= help: the following other types implement trait `FromInputValue<S>`: = help: the following other types implement trait `FromInputValue<S>`:
<bool as FromInputValue<__S>> <bool as FromInputValue<__S>>
@ -40,7 +42,6 @@ note: required by a bound in `Registry::<'r, S>::arg`
| where | where
| T: GraphQLType<S> + FromInputValue<S>, | T: GraphQLType<S> + FromInputValue<S>,
| ^^^^^^^^^^^^^^^^^ required by this bound in `Registry::<'r, S>::arg` | ^^^^^^^^^^^^^^^^^ required by this bound in `Registry::<'r, S>::arg`
= note: this error originates in the derive macro `GraphQLInputObject` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `ObjectA: FromInputValue<__S>` is not satisfied error[E0277]: the trait bound `ObjectA: FromInputValue<__S>` is not satisfied
--> fail/input-object/derive_incompatible_field_type.rs:8:10 --> fail/input-object/derive_incompatible_field_type.rs:8:10

View file

@ -1,8 +1,8 @@
error[E0277]: the trait bound `ObjB: IsOutputType<__S>` is not satisfied error[E0277]: the trait bound `ObjB: IsOutputType<__S>` is not satisfied
--> fail/interface/struct/attr_field_non_output_return_type.rs:10:9 --> fail/interface/struct/attr_field_non_output_return_type.rs:8:1
| |
10 | id: ObjB, 8 | #[graphql_interface]
| ^^^^ the trait `IsOutputType<__S>` is not implemented for `ObjB` | ^^^^^^^^^^^^^^^^^^^^ the trait `IsOutputType<__S>` is not implemented for `ObjB`
| |
= help: the following other types implement trait `IsOutputType<S>`: = help: the following other types implement trait `IsOutputType<S>`:
<bool as IsOutputType<__S>> <bool as IsOutputType<__S>>

View file

@ -1,8 +1,8 @@
error[E0277]: the trait bound `ObjB: IsOutputType<__S>` is not satisfied error[E0277]: the trait bound `ObjB: IsOutputType<__S>` is not satisfied
--> fail/interface/struct/derive_field_non_output_return_type.rs:10:9 --> fail/interface/struct/derive_field_non_output_return_type.rs:8:10
| |
10 | id: ObjB, 8 | #[derive(GraphQLInterface)]
| ^^^^ the trait `IsOutputType<__S>` is not implemented for `ObjB` | ^^^^^^^^^^^^^^^^ the trait `IsOutputType<__S>` is not implemented for `ObjB`
| |
= help: the following other types implement trait `IsOutputType<S>`: = help: the following other types implement trait `IsOutputType<S>`:
<bool as IsOutputType<__S>> <bool as IsOutputType<__S>>

View file

@ -16,10 +16,13 @@ error[E0277]: the trait bound `ObjA: IsInputType<__S>` is not satisfied
and $N others and $N others
error[E0277]: the trait bound `ObjA: FromInputValue<__S>` is not satisfied error[E0277]: the trait bound `ObjA: FromInputValue<__S>` is not satisfied
--> fail/interface/trait/argument_non_input_type.rs:8:1 --> fail/interface/trait/argument_non_input_type.rs:10:23
| |
8 | #[graphql_interface] 8 | #[graphql_interface]
| ^^^^^^^^^^^^^^^^^^^^ the trait `FromInputValue<__S>` is not implemented for `ObjA` | -------------------- required by a bound introduced by this call
9 | trait Character {
10 | fn id(&self, obj: ObjA) -> &str;
| ^^^^ the trait `FromInputValue<__S>` is not implemented for `ObjA`
| |
= help: the following other types implement trait `FromInputValue<S>`: = help: the following other types implement trait `FromInputValue<S>`:
<bool as FromInputValue<__S>> <bool as FromInputValue<__S>>
@ -39,4 +42,3 @@ note: required by a bound in `Registry::<'r, S>::arg`
| where | where
| T: GraphQLType<S> + FromInputValue<S>, | T: GraphQLType<S> + FromInputValue<S>,
| ^^^^^^^^^^^^^^^^^ required by this bound in `Registry::<'r, S>::arg` | ^^^^^^^^^^^^^^^^^ required by this bound in `Registry::<'r, S>::arg`
= note: this error originates in the attribute macro `graphql_interface` (in Nightly builds, run with -Z macro-backtrace for more info)

View file

@ -1,8 +1,8 @@
error[E0277]: the trait bound `ObjB: IsOutputType<__S>` is not satisfied error[E0277]: the trait bound `ObjB: IsOutputType<__S>` is not satisfied
--> fail/interface/trait/field_non_output_return_type.rs:10:21 --> fail/interface/trait/field_non_output_return_type.rs:8:1
| |
10 | fn id(&self) -> ObjB; 8 | #[graphql_interface]
| ^^^^ the trait `IsOutputType<__S>` is not implemented for `ObjB` | ^^^^^^^^^^^^^^^^^^^^ the trait `IsOutputType<__S>` is not implemented for `ObjB`
| |
= help: the following other types implement trait `IsOutputType<S>`: = help: the following other types implement trait `IsOutputType<S>`:
<bool as IsOutputType<__S>> <bool as IsOutputType<__S>>

View file

@ -16,10 +16,13 @@ error[E0277]: the trait bound `ObjA: IsInputType<__S>` is not satisfied
and $N others and $N others
error[E0277]: the trait bound `ObjA: FromInputValue<__S>` is not satisfied error[E0277]: the trait bound `ObjA: FromInputValue<__S>` is not satisfied
--> fail/object/argument_non_input_type.rs:10:1 --> fail/object/argument_non_input_type.rs:12:23
| |
10 | #[graphql_object] 10 | #[graphql_object]
| ^^^^^^^^^^^^^^^^^ the trait `FromInputValue<__S>` is not implemented for `ObjA` | ----------------- required by a bound introduced by this call
11 | impl ObjB {
12 | fn id(&self, obj: ObjA) -> &str {
| ^^^^ the trait `FromInputValue<__S>` is not implemented for `ObjA`
| |
= help: the following other types implement trait `FromInputValue<S>`: = help: the following other types implement trait `FromInputValue<S>`:
<bool as FromInputValue<__S>> <bool as FromInputValue<__S>>
@ -39,7 +42,6 @@ note: required by a bound in `Registry::<'r, S>::arg`
| where | where
| T: GraphQLType<S> + FromInputValue<S>, | T: GraphQLType<S> + FromInputValue<S>,
| ^^^^^^^^^^^^^^^^^ required by this bound in `Registry::<'r, S>::arg` | ^^^^^^^^^^^^^^^^^ required by this bound in `Registry::<'r, S>::arg`
= note: this error originates in the attribute macro `graphql_object` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `ObjA: FromInputValue<__S>` is not satisfied error[E0277]: the trait bound `ObjA: FromInputValue<__S>` is not satisfied
--> fail/object/argument_non_input_type.rs:10:1 --> fail/object/argument_non_input_type.rs:10:1
@ -58,3 +60,20 @@ error[E0277]: the trait bound `ObjA: FromInputValue<__S>` is not satisfied
<juniper::schema::model::DirectiveLocation as FromInputValue<__S>> <juniper::schema::model::DirectiveLocation as FromInputValue<__S>>
and $N others and $N others
= note: this error originates in the attribute macro `graphql_object` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the attribute macro `graphql_object` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `ObjA: FromInputValue<__S>` is not satisfied
--> fail/object/argument_non_input_type.rs:12:23
|
12 | fn id(&self, obj: ObjA) -> &str {
| ^^^^ the trait `FromInputValue<__S>` is not implemented for `ObjA`
|
= help: the following other types implement trait `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

View file

@ -1,8 +1,8 @@
error[E0277]: the trait bound `ObjB: IsOutputType<__S>` is not satisfied 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 { 10 | #[graphql_object]
| ^^^^ the trait `IsOutputType<__S>` is not implemented for `ObjB` | ^^^^^^^^^^^^^^^^^ the trait `IsOutputType<__S>` is not implemented for `ObjB`
| |
= help: the following other types implement trait `IsOutputType<S>`: = help: the following other types implement trait `IsOutputType<S>`:
<bool as IsOutputType<__S>> <bool as IsOutputType<__S>>

View file

@ -1,8 +1,8 @@
error[E0277]: the trait bound `ObjB: IsOutputType<__S>` is not satisfied error[E0277]: the trait bound `ObjB: IsOutputType<__S>` is not satisfied
--> fail/object/derive_field_non_output_return_type.rs:10:9 --> fail/object/derive_field_non_output_return_type.rs:8:10
| |
10 | id: ObjB, 8 | #[derive(GraphQLObject)]
| ^^^^ the trait `IsOutputType<__S>` is not implemented for `ObjB` | ^^^^^^^^^^^^^ the trait `IsOutputType<__S>` is not implemented for `ObjB`
| |
= help: the following other types implement trait `IsOutputType<S>`: = help: the following other types implement trait `IsOutputType<S>`:
<bool as IsOutputType<__S>> <bool as IsOutputType<__S>>

View file

@ -24,10 +24,13 @@ error[E0277]: the trait bound `ObjA: IsInputType<__S>` is not satisfied
and $N others and $N others
error[E0277]: the trait bound `ObjA: FromInputValue<__S>` is not satisfied error[E0277]: the trait bound `ObjA: FromInputValue<__S>` is not satisfied
--> fail/subscription/argument_non_input_type.rs:15:1 --> fail/subscription/argument_non_input_type.rs:17:29
| |
15 | #[graphql_subscription] 15 | #[graphql_subscription]
| ^^^^^^^^^^^^^^^^^^^^^^^ the trait `FromInputValue<__S>` is not implemented for `ObjA` | ----------------------- required by a bound introduced by this call
16 | impl ObjB {
17 | async fn id(&self, obj: ObjA) -> Stream<'static, &'static str> {
| ^^^^ the trait `FromInputValue<__S>` is not implemented for `ObjA`
| |
= help: the following other types implement trait `FromInputValue<S>`: = help: the following other types implement trait `FromInputValue<S>`:
<bool as FromInputValue<__S>> <bool as FromInputValue<__S>>
@ -47,7 +50,6 @@ note: required by a bound in `Registry::<'r, S>::arg`
| where | where
| T: GraphQLType<S> + FromInputValue<S>, | T: GraphQLType<S> + FromInputValue<S>,
| ^^^^^^^^^^^^^^^^^ required by this bound in `Registry::<'r, S>::arg` | ^^^^^^^^^^^^^^^^^ required by this bound in `Registry::<'r, S>::arg`
= note: this error originates in the attribute macro `graphql_subscription` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `ObjA: FromInputValue<__S>` is not satisfied error[E0277]: the trait bound `ObjA: FromInputValue<__S>` is not satisfied
--> fail/subscription/argument_non_input_type.rs:15:1 --> fail/subscription/argument_non_input_type.rs:15:1
@ -66,3 +68,20 @@ error[E0277]: the trait bound `ObjA: FromInputValue<__S>` is not satisfied
<juniper::schema::model::DirectiveLocation as FromInputValue<__S>> <juniper::schema::model::DirectiveLocation as FromInputValue<__S>>
and $N others and $N others
= note: this error originates in the attribute macro `graphql_subscription` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the attribute macro `graphql_subscription` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `ObjA: FromInputValue<__S>` is not satisfied
--> fail/subscription/argument_non_input_type.rs:17:29
|
17 | async fn id(&self, obj: ObjA) -> Stream<'static, &'static str> {
| ^^^^ the trait `FromInputValue<__S>` is not implemented for `ObjA`
|
= help: the following other types implement trait `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

View file

@ -1,8 +1,8 @@
error[E0277]: the trait bound `ObjB: IsOutputType<__S>` is not satisfied 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> { 15 | #[graphql_subscription]
| ^^^^^^ the trait `IsOutputType<__S>` is not implemented for `ObjB` | ^^^^^^^^^^^^^^^^^^^^^^^ the trait `IsOutputType<__S>` is not implemented for `ObjB`
| |
= help: the following other types implement trait `IsOutputType<S>`: = help: the following other types implement trait `IsOutputType<S>`:
<bool as IsOutputType<__S>> <bool as IsOutputType<__S>>

View file

@ -1,8 +1,8 @@
error[E0277]: the trait bound `Test: GraphQLObject<__S>` is not satisfied error[E0277]: the trait bound `Test: GraphQLObject<__S>` is not satisfied
--> fail/union/enum_non_object_variant.rs:9:10 --> fail/union/enum_non_object_variant.rs:11:10
| |
9 | #[derive(GraphQLUnion)] 11 | Test(Test),
| ^^^^^^^^^^^^ the trait `GraphQLObject<__S>` is not implemented for `Test` | ^^^^ the trait `GraphQLObject<__S>` is not implemented for `Test`
| |
= help: the following other types implement trait `GraphQLObject<S>`: = help: the following other types implement trait `GraphQLObject<S>`:
<Box<T> as GraphQLObject<S>> <Box<T> as GraphQLObject<S>>
@ -14,4 +14,3 @@ error[E0277]: the trait bound `Test: GraphQLObject<__S>` is not satisfied
<juniper::schema::model::DirectiveType<'a, S> as GraphQLObject<S>> <juniper::schema::model::DirectiveType<'a, S> as GraphQLObject<S>>
<Arc<T> as GraphQLObject<S>> <Arc<T> as GraphQLObject<S>>
<&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)

View file

@ -1,8 +1,8 @@
error[E0277]: the trait bound `Test: GraphQLObject<__S>` is not satisfied error[E0277]: the trait bound `Test: GraphQLObject<__S>` is not satisfied
--> fail/union/struct_non_object_variant.rs:9:10 --> fail/union/struct_non_object_variant.rs:10:14
| |
9 | #[derive(GraphQLUnion)] 10 | #[graphql(on Test = Character::a)]
| ^^^^^^^^^^^^ the trait `GraphQLObject<__S>` is not implemented for `Test` | ^^^^ the trait `GraphQLObject<__S>` is not implemented for `Test`
| |
= help: the following other types implement trait `GraphQLObject<S>`: = help: the following other types implement trait `GraphQLObject<S>`:
<Box<T> as GraphQLObject<S>> <Box<T> as GraphQLObject<S>>
@ -14,4 +14,3 @@ error[E0277]: the trait bound `Test: GraphQLObject<__S>` is not satisfied
<juniper::schema::model::DirectiveType<'a, S> as GraphQLObject<S>> <juniper::schema::model::DirectiveType<'a, S> as GraphQLObject<S>>
<Arc<T> as GraphQLObject<S>> <Arc<T> as GraphQLObject<S>>
<&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)

View file

@ -1,8 +1,8 @@
error[E0277]: the trait bound `Test: GraphQLObject<__S>` is not satisfied error[E0277]: the trait bound `Test: GraphQLObject<__S>` is not satisfied
--> fail/union/trait_non_object_variant.rs:9:1 --> fail/union/trait_non_object_variant.rs:11:28
| |
9 | #[graphql_union] 11 | fn a(&self) -> Option<&Test>;
| ^^^^^^^^^^^^^^^^ the trait `GraphQLObject<__S>` is not implemented for `Test` | ^^^^ the trait `GraphQLObject<__S>` is not implemented for `Test`
| |
= help: the following other types implement trait `GraphQLObject<S>`: = help: the following other types implement trait `GraphQLObject<S>`:
<Box<T> as GraphQLObject<S>> <Box<T> as GraphQLObject<S>>
@ -14,4 +14,3 @@ error[E0277]: the trait bound `Test: GraphQLObject<__S>` is not satisfied
<juniper::schema::model::DirectiveType<'a, S> as GraphQLObject<S>> <juniper::schema::model::DirectiveType<'a, S> as GraphQLObject<S>>
<Arc<T> as GraphQLObject<S>> <Arc<T> as GraphQLObject<S>>
<&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)