-
Notifications
You must be signed in to change notification settings - Fork 425
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into dependabot/github_actions/actions/checkout-4
- Loading branch information
Showing
7 changed files
with
175 additions
and
137 deletions.
There are no files selected for viewing
79 changes: 40 additions & 39 deletions
79
tests/codegen/fail/input-object/derive_incompatible_field_type.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
78 changes: 40 additions & 38 deletions
78
tests/codegen/fail/interface/trait/argument_non_input_type.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,44 @@ | ||
error[E0277]: the trait bound `ObjA: IsInputType<__S>` is not satisfied | ||
--> 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 | ||
--> 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 | ||
|
||
error[E0277]: the trait bound `ObjA: FromInputValue<__S>` is not satisfied | ||
--> fail/interface/trait/argument_non_input_type.rs:8:1 | ||
| | ||
8 | #[graphql_interface] | ||
| ^^^^^^^^^^^^^^^^^^^^ 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 | ||
--> fail/interface/trait/argument_non_input_type.rs:10:23 | ||
| | ||
8 | #[graphql_interface] | ||
| -------------------- 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>`: | ||
<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 | ||
| | ||
| pub fn arg<T>(&mut self, name: &str, info: &T::TypeInfo) -> Argument<'r, S> | ||
| --- required by a bound in this associated function | ||
| where | ||
| T: GraphQLType<S> + FromInputValue<S>, | ||
| ^^^^^^^^^^^^^^^^^ 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) | ||
--> $WORKSPACE/juniper/src/executor/mod.rs | ||
| | ||
| pub fn arg<T>(&mut self, name: &str, info: &T::TypeInfo) -> Argument<'r, S> | ||
| --- required by a bound in this associated function | ||
| where | ||
| T: GraphQLType<S> + FromInputValue<S>, | ||
| ^^^^^^^^^^^^^^^^^ required by this bound in `Registry::<'r, S>::arg` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
error[E0277]: the trait bound `Test: GraphQLObject<__S>` is not satisfied | ||
--> fail/union/enum_non_object_variant.rs:9:10 | ||
| | ||
9 | #[derive(GraphQLUnion)] | ||
| ^^^^^^^^^^^^ the trait `GraphQLObject<__S>` is not implemented for `Test` | ||
| | ||
= help: the following other types implement trait `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::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) | ||
--> fail/union/enum_non_object_variant.rs:11:10 | ||
| | ||
11 | Test(Test), | ||
| ^^^^ the trait `GraphQLObject<__S>` is not implemented for `Test` | ||
| | ||
= help: the following other types implement trait `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::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>> |
31 changes: 15 additions & 16 deletions
31
tests/codegen/fail/union/struct_non_object_variant.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
error[E0277]: the trait bound `Test: GraphQLObject<__S>` is not satisfied | ||
--> fail/union/struct_non_object_variant.rs:9:10 | ||
| | ||
9 | #[derive(GraphQLUnion)] | ||
| ^^^^^^^^^^^^ the trait `GraphQLObject<__S>` is not implemented for `Test` | ||
| | ||
= help: the following other types implement trait `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::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) | ||
--> fail/union/struct_non_object_variant.rs:10:14 | ||
| | ||
10 | #[graphql(on Test = Character::a)] | ||
| ^^^^ the trait `GraphQLObject<__S>` is not implemented for `Test` | ||
| | ||
= help: the following other types implement trait `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::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>> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
error[E0277]: the trait bound `Test: GraphQLObject<__S>` is not satisfied | ||
--> fail/union/trait_non_object_variant.rs:9:1 | ||
| | ||
9 | #[graphql_union] | ||
| ^^^^^^^^^^^^^^^^ the trait `GraphQLObject<__S>` is not implemented for `Test` | ||
| | ||
= help: the following other types implement trait `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::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) | ||
--> fail/union/trait_non_object_variant.rs:11:28 | ||
| | ||
11 | fn a(&self) -> Option<&Test>; | ||
| ^^^^ the trait `GraphQLObject<__S>` is not implemented for `Test` | ||
| | ||
= help: the following other types implement trait `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::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>> |