diff --git a/tests/codegen/fail/interface/struct/attr_missing_field.stderr b/tests/codegen/fail/interface/struct/attr_missing_field.stderr index 265f9b69..b7c2746a 100644 --- a/tests/codegen/fail/interface/struct/attr_missing_field.stderr +++ b/tests/codegen/fail/interface/struct/attr_missing_field.stderr @@ -134,6 +134,14 @@ note: erroneous constant used | = note: this note originates in the macro `$crate::const_concat` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) +note: erroneous constant used + --> fail/interface/struct/attr_missing_field.rs:11:5 + | +11 | id: String, + | ^^ + | + = note: this note originates in the macro `$crate::assert_field_args` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) + note: erroneous constant used --> fail/interface/struct/attr_missing_field.rs:11:5 | @@ -166,6 +174,14 @@ note: erroneous constant used | = note: this note originates in the macro `$crate::const_concat` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) +note: erroneous constant used + --> fail/interface/struct/attr_missing_field.rs:11:5 + | +11 | id: String, + | ^^ + | + = note: this note originates in the macro `$crate::assert_field_args` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) + note: erroneous constant used --> fail/interface/struct/attr_missing_field.rs:11:5 | @@ -206,6 +222,14 @@ note: erroneous constant used | = note: this note originates in the macro `$crate::const_concat` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) +note: erroneous constant used + --> fail/interface/struct/attr_missing_field.rs:11:5 + | +11 | id: String, + | ^^ + | + = note: this note originates in the macro `$crate::assert_field_args` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) + note: erroneous constant used --> fail/interface/struct/attr_missing_field.rs:11:5 | @@ -238,6 +262,14 @@ note: erroneous constant used | = note: this note originates in the macro `$crate::const_concat` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) +note: erroneous constant used + --> fail/interface/struct/attr_missing_field.rs:11:5 + | +11 | id: String, + | ^^ + | + = note: this note originates in the macro `$crate::assert_field_args` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) + note: erroneous constant used --> fail/interface/struct/attr_missing_field.rs:11:5 | @@ -294,6 +326,14 @@ note: erroneous constant used | = note: this note originates in the macro `$crate::format_type` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) +note: erroneous constant used + --> fail/interface/struct/attr_missing_field.rs:11:5 + | +11 | id: String, + | ^^ + | + = note: this note originates in the macro `$crate::assert_subtype` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) + note: erroneous constant used --> fail/interface/struct/attr_missing_field.rs:11:5 | @@ -358,6 +398,14 @@ note: erroneous constant used | = note: this note originates in the macro `$crate::const_concat` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) +note: erroneous constant used + --> fail/interface/struct/attr_missing_field.rs:11:5 + | +11 | id: String, + | ^^ + | + = note: this note originates in the macro `$crate::assert_subtype` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) + note: erroneous constant used --> fail/interface/struct/attr_missing_field.rs:11:5 | @@ -518,6 +566,14 @@ note: erroneous constant used | = note: this note originates in the macro `$crate::const_concat` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) +note: erroneous constant used + --> fail/interface/struct/attr_missing_field.rs:11:5 + | +11 | id: String, + | ^^ + | + = note: this note originates in the macro `$crate::assert_field_args` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) + note: erroneous constant used --> fail/interface/struct/attr_missing_field.rs:11:5 | @@ -550,6 +606,14 @@ note: erroneous constant used | = note: this note originates in the macro `$crate::const_concat` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) +note: erroneous constant used + --> fail/interface/struct/attr_missing_field.rs:11:5 + | +11 | id: String, + | ^^ + | + = note: this note originates in the macro `$crate::assert_field_args` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) + note: erroneous constant used --> fail/interface/struct/attr_missing_field.rs:11:5 | @@ -590,6 +654,14 @@ note: erroneous constant used | = note: this note originates in the macro `$crate::const_concat` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) +note: erroneous constant used + --> fail/interface/struct/attr_missing_field.rs:11:5 + | +11 | id: String, + | ^^ + | + = note: this note originates in the macro `$crate::assert_field_args` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) + note: erroneous constant used --> fail/interface/struct/attr_missing_field.rs:11:5 | @@ -622,6 +694,14 @@ note: erroneous constant used | = note: this note originates in the macro `$crate::const_concat` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) +note: erroneous constant used + --> fail/interface/struct/attr_missing_field.rs:11:5 + | +11 | id: String, + | ^^ + | + = note: this note originates in the macro `$crate::assert_field_args` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) + note: erroneous constant used --> fail/interface/struct/attr_missing_field.rs:11:5 | @@ -678,6 +758,14 @@ note: erroneous constant used | = note: this note originates in the macro `$crate::format_type` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) +note: erroneous constant used + --> fail/interface/struct/attr_missing_field.rs:11:5 + | +11 | id: String, + | ^^ + | + = note: this note originates in the macro `$crate::assert_subtype` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) + note: erroneous constant used --> fail/interface/struct/attr_missing_field.rs:11:5 | @@ -742,6 +830,14 @@ note: erroneous constant used | = note: this note originates in the macro `$crate::const_concat` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) +note: erroneous constant used + --> fail/interface/struct/attr_missing_field.rs:11:5 + | +11 | id: String, + | ^^ + | + = note: this note originates in the macro `$crate::assert_subtype` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) + note: erroneous constant used --> fail/interface/struct/attr_missing_field.rs:11:5 | diff --git a/tests/codegen/fail/interface/struct/derive_missing_field.stderr b/tests/codegen/fail/interface/struct/derive_missing_field.stderr index 27805b83..9becef80 100644 --- a/tests/codegen/fail/interface/struct/derive_missing_field.stderr +++ b/tests/codegen/fail/interface/struct/derive_missing_field.stderr @@ -134,6 +134,14 @@ note: erroneous constant used | = note: this note originates in the macro `$crate::const_concat` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) +note: erroneous constant used + --> fail/interface/struct/derive_missing_field.rs:12:5 + | +12 | id: String, + | ^^ + | + = note: this note originates in the macro `$crate::assert_field_args` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) + note: erroneous constant used --> fail/interface/struct/derive_missing_field.rs:12:5 | @@ -166,6 +174,14 @@ note: erroneous constant used | = note: this note originates in the macro `$crate::const_concat` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) +note: erroneous constant used + --> fail/interface/struct/derive_missing_field.rs:12:5 + | +12 | id: String, + | ^^ + | + = note: this note originates in the macro `$crate::assert_field_args` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) + note: erroneous constant used --> fail/interface/struct/derive_missing_field.rs:12:5 | @@ -206,6 +222,14 @@ note: erroneous constant used | = note: this note originates in the macro `$crate::const_concat` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) +note: erroneous constant used + --> fail/interface/struct/derive_missing_field.rs:12:5 + | +12 | id: String, + | ^^ + | + = note: this note originates in the macro `$crate::assert_field_args` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) + note: erroneous constant used --> fail/interface/struct/derive_missing_field.rs:12:5 | @@ -238,6 +262,14 @@ note: erroneous constant used | = note: this note originates in the macro `$crate::const_concat` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) +note: erroneous constant used + --> fail/interface/struct/derive_missing_field.rs:12:5 + | +12 | id: String, + | ^^ + | + = note: this note originates in the macro `$crate::assert_field_args` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) + note: erroneous constant used --> fail/interface/struct/derive_missing_field.rs:12:5 | @@ -294,6 +326,14 @@ note: erroneous constant used | = note: this note originates in the macro `$crate::format_type` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) +note: erroneous constant used + --> fail/interface/struct/derive_missing_field.rs:12:5 + | +12 | id: String, + | ^^ + | + = note: this note originates in the macro `$crate::assert_subtype` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) + note: erroneous constant used --> fail/interface/struct/derive_missing_field.rs:12:5 | @@ -358,6 +398,14 @@ note: erroneous constant used | = note: this note originates in the macro `$crate::const_concat` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) +note: erroneous constant used + --> fail/interface/struct/derive_missing_field.rs:12:5 + | +12 | id: String, + | ^^ + | + = note: this note originates in the macro `$crate::assert_subtype` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) + note: erroneous constant used --> fail/interface/struct/derive_missing_field.rs:12:5 | @@ -518,6 +566,14 @@ note: erroneous constant used | = note: this note originates in the macro `$crate::const_concat` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) +note: erroneous constant used + --> fail/interface/struct/derive_missing_field.rs:12:5 + | +12 | id: String, + | ^^ + | + = note: this note originates in the macro `$crate::assert_field_args` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) + note: erroneous constant used --> fail/interface/struct/derive_missing_field.rs:12:5 | @@ -550,6 +606,14 @@ note: erroneous constant used | = note: this note originates in the macro `$crate::const_concat` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) +note: erroneous constant used + --> fail/interface/struct/derive_missing_field.rs:12:5 + | +12 | id: String, + | ^^ + | + = note: this note originates in the macro `$crate::assert_field_args` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) + note: erroneous constant used --> fail/interface/struct/derive_missing_field.rs:12:5 | @@ -590,6 +654,14 @@ note: erroneous constant used | = note: this note originates in the macro `$crate::const_concat` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) +note: erroneous constant used + --> fail/interface/struct/derive_missing_field.rs:12:5 + | +12 | id: String, + | ^^ + | + = note: this note originates in the macro `$crate::assert_field_args` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) + note: erroneous constant used --> fail/interface/struct/derive_missing_field.rs:12:5 | @@ -622,6 +694,14 @@ note: erroneous constant used | = note: this note originates in the macro `$crate::const_concat` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) +note: erroneous constant used + --> fail/interface/struct/derive_missing_field.rs:12:5 + | +12 | id: String, + | ^^ + | + = note: this note originates in the macro `$crate::assert_field_args` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) + note: erroneous constant used --> fail/interface/struct/derive_missing_field.rs:12:5 | @@ -678,6 +758,14 @@ note: erroneous constant used | = note: this note originates in the macro `$crate::format_type` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) +note: erroneous constant used + --> fail/interface/struct/derive_missing_field.rs:12:5 + | +12 | id: String, + | ^^ + | + = note: this note originates in the macro `$crate::assert_subtype` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) + note: erroneous constant used --> fail/interface/struct/derive_missing_field.rs:12:5 | @@ -742,6 +830,14 @@ note: erroneous constant used | = note: this note originates in the macro `$crate::const_concat` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) +note: erroneous constant used + --> fail/interface/struct/derive_missing_field.rs:12:5 + | +12 | id: String, + | ^^ + | + = note: this note originates in the macro `$crate::assert_subtype` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) + note: erroneous constant used --> fail/interface/struct/derive_missing_field.rs:12:5 | diff --git a/tests/codegen/fail/interface/trait/missing_field.stderr b/tests/codegen/fail/interface/trait/missing_field.stderr index 0e834b71..0330e154 100644 --- a/tests/codegen/fail/interface/trait/missing_field.stderr +++ b/tests/codegen/fail/interface/trait/missing_field.stderr @@ -134,6 +134,14 @@ note: erroneous constant used | = note: this note originates in the macro `$crate::const_concat` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) +note: erroneous constant used + --> fail/interface/trait/missing_field.rs:11:8 + | +11 | fn id(&self) -> &str; + | ^^ + | + = note: this note originates in the macro `$crate::assert_field_args` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) + note: erroneous constant used --> fail/interface/trait/missing_field.rs:11:8 | @@ -166,6 +174,14 @@ note: erroneous constant used | = note: this note originates in the macro `$crate::const_concat` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) +note: erroneous constant used + --> fail/interface/trait/missing_field.rs:11:8 + | +11 | fn id(&self) -> &str; + | ^^ + | + = note: this note originates in the macro `$crate::assert_field_args` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) + note: erroneous constant used --> fail/interface/trait/missing_field.rs:11:8 | @@ -206,6 +222,14 @@ note: erroneous constant used | = note: this note originates in the macro `$crate::const_concat` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) +note: erroneous constant used + --> fail/interface/trait/missing_field.rs:11:8 + | +11 | fn id(&self) -> &str; + | ^^ + | + = note: this note originates in the macro `$crate::assert_field_args` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) + note: erroneous constant used --> fail/interface/trait/missing_field.rs:11:8 | @@ -238,6 +262,14 @@ note: erroneous constant used | = note: this note originates in the macro `$crate::const_concat` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) +note: erroneous constant used + --> fail/interface/trait/missing_field.rs:11:8 + | +11 | fn id(&self) -> &str; + | ^^ + | + = note: this note originates in the macro `$crate::assert_field_args` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) + note: erroneous constant used --> fail/interface/trait/missing_field.rs:11:8 | @@ -294,6 +326,14 @@ note: erroneous constant used | = note: this note originates in the macro `$crate::format_type` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) +note: erroneous constant used + --> fail/interface/trait/missing_field.rs:11:8 + | +11 | fn id(&self) -> &str; + | ^^ + | + = note: this note originates in the macro `$crate::assert_subtype` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) + note: erroneous constant used --> fail/interface/trait/missing_field.rs:11:8 | @@ -358,6 +398,14 @@ note: erroneous constant used | = note: this note originates in the macro `$crate::const_concat` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) +note: erroneous constant used + --> fail/interface/trait/missing_field.rs:11:8 + | +11 | fn id(&self) -> &str; + | ^^ + | + = note: this note originates in the macro `$crate::assert_subtype` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) + note: erroneous constant used --> fail/interface/trait/missing_field.rs:11:8 | @@ -518,6 +566,14 @@ note: erroneous constant used | = note: this note originates in the macro `$crate::const_concat` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) +note: erroneous constant used + --> fail/interface/trait/missing_field.rs:11:8 + | +11 | fn id(&self) -> &str; + | ^^ + | + = note: this note originates in the macro `$crate::assert_field_args` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) + note: erroneous constant used --> fail/interface/trait/missing_field.rs:11:8 | @@ -550,6 +606,14 @@ note: erroneous constant used | = note: this note originates in the macro `$crate::const_concat` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) +note: erroneous constant used + --> fail/interface/trait/missing_field.rs:11:8 + | +11 | fn id(&self) -> &str; + | ^^ + | + = note: this note originates in the macro `$crate::assert_field_args` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) + note: erroneous constant used --> fail/interface/trait/missing_field.rs:11:8 | @@ -590,6 +654,14 @@ note: erroneous constant used | = note: this note originates in the macro `$crate::const_concat` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) +note: erroneous constant used + --> fail/interface/trait/missing_field.rs:11:8 + | +11 | fn id(&self) -> &str; + | ^^ + | + = note: this note originates in the macro `$crate::assert_field_args` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) + note: erroneous constant used --> fail/interface/trait/missing_field.rs:11:8 | @@ -622,6 +694,14 @@ note: erroneous constant used | = note: this note originates in the macro `$crate::const_concat` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) +note: erroneous constant used + --> fail/interface/trait/missing_field.rs:11:8 + | +11 | fn id(&self) -> &str; + | ^^ + | + = note: this note originates in the macro `$crate::assert_field_args` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) + note: erroneous constant used --> fail/interface/trait/missing_field.rs:11:8 | @@ -678,6 +758,14 @@ note: erroneous constant used | = note: this note originates in the macro `$crate::format_type` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) +note: erroneous constant used + --> fail/interface/trait/missing_field.rs:11:8 + | +11 | fn id(&self) -> &str; + | ^^ + | + = note: this note originates in the macro `$crate::assert_subtype` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) + note: erroneous constant used --> fail/interface/trait/missing_field.rs:11:8 | @@ -742,6 +830,14 @@ note: erroneous constant used | = note: this note originates in the macro `$crate::const_concat` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) +note: erroneous constant used + --> fail/interface/trait/missing_field.rs:11:8 + | +11 | fn id(&self) -> &str; + | ^^ + | + = note: this note originates in the macro `$crate::assert_subtype` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info) + note: erroneous constant used --> fail/interface/trait/missing_field.rs:11:8 | diff --git a/tests/codegen/fail/object/argument_non_input_type.stderr b/tests/codegen/fail/object/argument_non_input_type.stderr index 1683fef0..4fc8456b 100644 --- a/tests/codegen/fail/object/argument_non_input_type.stderr +++ b/tests/codegen/fail/object/argument_non_input_type.stderr @@ -13,30 +13,7 @@ error[E0277]: the trait bound `ObjA: IsInputType<__S>` is not satisfied as IsInputType> <[T; N] as IsInputType> <[T] as IsInputType> - and 12 others - -error[E0277]: the trait bound `ObjA: FromInputValue<__S>` is not satisfied - --> fail/object/argument_non_input_type.rs:10:1 - | -10 | #[graphql_object] - | ^^^^^^^^^^^^^^^^^ 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> - > - > - and 9 others -note: required by a bound in `Registry::<'r, S>::arg` - --> $WORKSPACE/juniper/src/executor/mod.rs - | - | T: GraphQLType + FromInputValue, - | ^^^^^^^^^^^^^^^^^ 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) + and $N others error[E0277]: the trait bound `ObjA: FromInputValue<__S>` is not satisfied --> fail/object/argument_non_input_type.rs:10:1 @@ -53,5 +30,46 @@ error[E0277]: the trait bound `ObjA: FromInputValue<__S>` is not satisfied <[T; N] as FromInputValue> > > - and 9 others + and $N others +note: required by a bound in `Registry::<'r, S>::arg` + --> $WORKSPACE/juniper/src/executor/mod.rs + | + | T: GraphQLType + FromInputValue, + | ^^^^^^^^^^^^^^^^^ 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 + --> fail/object/argument_non_input_type.rs:10:1 + | +10 | #[graphql_object] + | ^^^^^^^^^^^^^^^^^ 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> + > + > + and $N others + = 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:10:1 + | +10 | #[graphql_object] + | ^^^^^^^^^^^^^^^^^ 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> + > + > + 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/union/trait_fail_infer_context.stderr b/tests/codegen/fail/union/trait_fail_infer_context.stderr index 35b54f78..04106c47 100644 --- a/tests/codegen/fail/union/trait_fail_infer_context.stderr +++ b/tests/codegen/fail/union/trait_fail_infer_context.stderr @@ -10,19 +10,59 @@ error[E0277]: the trait bound `CustomContext: FromContext` is not sa = 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 - --> fail/union/trait_fail_infer_context.rs:3:1 - | -3 | #[graphql_union] - | ^^^^^^^^^^^^^^^^ - | | - | expected struct `CustomContext`, found struct `SubContext` - | arguments to this function are incorrect - | - = note: expected reference `&CustomContext` - found reference `&SubContext` + --> fail/union/trait_fail_infer_context.rs:3:1 + | +3 | #[graphql_union] + | ^^^^^^^^^^^^^^^^ + | | + | expected struct `CustomContext`, found struct `SubContext` + | arguments to this function are incorrect + | + = note: expected reference `&CustomContext` + found reference `&SubContext` note: associated function defined here - --> $WORKSPACE/juniper/src/executor/mod.rs - | - | fn into_resolvable(self, ctx: &'a C) -> FieldResult, S>; - | ^^^^^^^^^^^^^^^ - = note: this error originates in the attribute macro `graphql_union` (in Nightly builds, run with -Z macro-backtrace for more info) + --> $WORKSPACE/juniper/src/executor/mod.rs + | + | fn into_resolvable(self, ctx: &'a C) -> FieldResult, S>; + | ^^^^^^^^^^^^^^^ + = note: this error originates in the attribute macro `graphql_union` (in Nightly builds, run with -Z macro-backtrace for more info) + +error[E0277]: the trait bound `CustomContext: FromContext` is not satisfied + --> fail/union/trait_fail_infer_context.rs:3:1 + | +3 | #[graphql_union] + | ^^^^^^^^^^^^^^^^ the trait `FromContext` is not implemented for `CustomContext` + | + = help: the following other types implement trait `FromContext`: + <() as 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 + --> fail/union/trait_fail_infer_context.rs:3:1 + | +3 | #[graphql_union] + | ^^^^^^^^^^^^^^^^ + | | + | expected struct `CustomContext`, found struct `SubContext` + | arguments to this function are incorrect + | + = note: expected reference `&CustomContext` + found reference `&SubContext` +note: associated function defined here + --> $WORKSPACE/juniper/src/executor/mod.rs + | + | fn into_resolvable(self, ctx: &'a C) -> FieldResult, S>; + | ^^^^^^^^^^^^^^^ + = note: this error originates in the attribute macro `graphql_union` (in Nightly builds, run with -Z macro-backtrace for more info) + +error[E0277]: the trait bound `CustomContext: FromContext` is not satisfied + --> fail/union/trait_fail_infer_context.rs:3:1 + | +3 | #[graphql_union] + | ^^^^^^^^^^^^^^^^ the trait `FromContext` is not implemented for `CustomContext` + | + = help: the following other types implement trait `FromContext`: + <() as FromContext> + > + = note: this error originates in the attribute macro `graphql_union` (in Nightly builds, run with -Z macro-backtrace for more info)