Fix codegen failure test for latest nightly Rust
This commit is contained in:
parent
ba1ed85b3c
commit
30d80dff12
2 changed files with 18 additions and 9 deletions
|
@ -59,7 +59,7 @@ All user visible changes to `juniper` crate will be documented in this file. Thi
|
|||
### Changed
|
||||
|
||||
- Made `GraphQLRequest` fields public. ([#750])
|
||||
- Relaxed [object safety] requirement for `GraphQLValue` and `GraphQLValueAsync` traits. ([rev])
|
||||
- Relaxed [object safety] requirement for `GraphQLValue` and `GraphQLValueAsync` traits. ([ba1ed85b])
|
||||
|
||||
## Fixed
|
||||
|
||||
|
@ -93,6 +93,7 @@ All user visible changes to `juniper` crate will be documented in this file. Thi
|
|||
[#1026]: /../../pull/1026
|
||||
[#1051]: /../../issues/1051
|
||||
[#1054]: /../../pull/1054
|
||||
[ba1ed85b]: /../../commit/ba1ed85b3c3dd77fbae7baf6bc4e693321a94083
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -10,11 +10,19 @@ error[E0277]: the trait bound `CustomContext: FromContext<SubContext>` 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`
|
||||
|
|
||||
= note: expected reference `&CustomContext`
|
||||
found reference `&SubContext`
|
||||
= note: this error originates in the attribute macro `graphql_union` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
--> 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(self, ctx: &'a C) -> FieldResult<Option<(&'a T::Context, T)>, S>;
|
||||
| ^^^^
|
||||
= note: this error originates in the attribute macro `graphql_union` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
|
Loading…
Reference in a new issue