Fix codegen tests for latest nightly (#1182)
This commit is contained in:
parent
108ccf2715
commit
421c8c9d58
15 changed files with 111 additions and 108 deletions
tests/codegen/fail
interface
struct
attr_cyclic_impl.stderrattr_field_non_output_return_type.stderrderive_cyclic_impl.stderrderive_field_non_output_return_type.stderr
trait
object
argument_non_input_type.stderrargument_wrong_default_array.stderrattr_field_non_output_return_type.stderrderive_field_non_output_return_type.stderr
subscription
|
@ -24,3 +24,4 @@ note: cycle used when collecting item types in top-level module
|
||||||
12 | |
|
12 | |
|
||||||
13 | | fn main() {}
|
13 | | fn main() {}
|
||||||
| |____________^
|
| |____________^
|
||||||
|
= note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
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>>
|
||||||
<i32 as IsOutputType<__S>>
|
<i32 as IsOutputType<__S>>
|
||||||
<f64 as IsOutputType<__S>>
|
<f64 as IsOutputType<__S>>
|
||||||
<CharacterValueEnum as IsOutputType<__S>>
|
<CharacterValueEnum as IsOutputType<__S>>
|
||||||
<Box<T> as IsOutputType<S>>
|
<Box<T> as IsOutputType<S>>
|
||||||
<uuid::Uuid as IsOutputType<__S>>
|
<uuid::Uuid as IsOutputType<__S>>
|
||||||
<url::Url as IsOutputType<__S>>
|
<url::Url as IsOutputType<__S>>
|
||||||
<bson::datetime::DateTime as IsOutputType<__S>>
|
<bson::datetime::DateTime as IsOutputType<__S>>
|
||||||
and $N others
|
and $N others
|
||||||
|
|
|
@ -24,3 +24,4 @@ note: cycle used when collecting item types in top-level module
|
||||||
14 | |
|
14 | |
|
||||||
15 | | fn main() {}
|
15 | | fn main() {}
|
||||||
| |____________^
|
| |____________^
|
||||||
|
= note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
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>>
|
||||||
<i32 as IsOutputType<__S>>
|
<i32 as IsOutputType<__S>>
|
||||||
<f64 as IsOutputType<__S>>
|
<f64 as IsOutputType<__S>>
|
||||||
<CharacterValueEnum as IsOutputType<__S>>
|
<CharacterValueEnum as IsOutputType<__S>>
|
||||||
<Box<T> as IsOutputType<S>>
|
<Box<T> as IsOutputType<S>>
|
||||||
<uuid::Uuid as IsOutputType<__S>>
|
<uuid::Uuid as IsOutputType<__S>>
|
||||||
<url::Url as IsOutputType<__S>>
|
<url::Url as IsOutputType<__S>>
|
||||||
<bson::datetime::DateTime as IsOutputType<__S>>
|
<bson::datetime::DateTime as IsOutputType<__S>>
|
||||||
and $N others
|
and $N others
|
||||||
|
|
|
@ -1,19 +1,19 @@
|
||||||
error[E0277]: the trait bound `ObjA: IsInputType<__S>` is not satisfied
|
error[E0277]: the trait bound `ObjA: IsInputType<__S>` is not satisfied
|
||||||
--> fail/interface/trait/argument_non_input_type.rs:10:23
|
--> fail/interface/trait/argument_non_input_type.rs:8:1
|
||||||
|
|
|
|
||||||
10 | fn id(&self, obj: ObjA) -> &str;
|
8 | #[graphql_interface]
|
||||||
| ^^^^ the trait `IsInputType<__S>` is not implemented for `ObjA`
|
| ^^^^^^^^^^^^^^^^^^^^ the trait `IsInputType<__S>` is not implemented for `ObjA`
|
||||||
|
|
|
|
||||||
= 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>>
|
||||||
<i32 as IsInputType<__S>>
|
<i32 as IsInputType<__S>>
|
||||||
<f64 as IsInputType<__S>>
|
<f64 as IsInputType<__S>>
|
||||||
<Box<T> as IsInputType<S>>
|
<Box<T> as IsInputType<S>>
|
||||||
<uuid::Uuid as IsInputType<__S>>
|
<uuid::Uuid as IsInputType<__S>>
|
||||||
<url::Url as IsInputType<__S>>
|
<url::Url as IsInputType<__S>>
|
||||||
<bson::datetime::DateTime as IsInputType<__S>>
|
<bson::datetime::DateTime as IsInputType<__S>>
|
||||||
<juniper::schema::model::DirectiveLocation as IsInputType<__S>>
|
<juniper::schema::model::DirectiveLocation as IsInputType<__S>>
|
||||||
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:8:1
|
||||||
|
|
|
@ -6,13 +6,13 @@ error[E0277]: the trait bound `[bool; 2]: From<[bool; 3]>` is not satisfied
|
||||||
|
|
|
|
||||||
= help: the following other types implement trait `From<T>`:
|
= help: the following other types implement trait `From<T>`:
|
||||||
<[bool; LANES] as From<Mask<T, LANES>>>
|
<[bool; LANES] as From<Mask<T, LANES>>>
|
||||||
<[u32; 4] as From<ppv_lite86::x86_64::vec128_storage>>
|
<[u32; 4] as From<ppv_lite86::generic::vec128_storage>>
|
||||||
<[u32; 8] as From<ppv_lite86::x86_64::vec256_storage>>
|
<[u64; 2] as From<ppv_lite86::generic::vec128_storage>>
|
||||||
<[u32; 16] as From<ppv_lite86::x86_64::vec512_storage>>
|
<[u64; 4] as From<ppv_lite86::generic::vec256_storage>>
|
||||||
<[u64; 2] as From<ppv_lite86::x86_64::vec128_storage>>
|
<[T; N] as From<Simd<T, N>>>
|
||||||
<[u64; 4] as From<ppv_lite86::x86_64::vec256_storage>>
|
<[T; 1] as From<(T,)>>
|
||||||
<[u64; 8] as From<ppv_lite86::x86_64::vec512_storage>>
|
<[T; 2] as From<(T, T)>>
|
||||||
<[u128; 1] as From<ppv_lite86::x86_64::vec128_storage>>
|
<[T; 3] as From<(T, T, T)>>
|
||||||
and $N others
|
and $N others
|
||||||
= note: required for `[bool; 3]` to implement `Into<[bool; 2]>`
|
= 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)
|
= note: this error originates in the attribute macro `graphql_interface` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||||
|
|
|
@ -24,3 +24,4 @@ note: cycle used when collecting item types in top-level module
|
||||||
12 | |
|
12 | |
|
||||||
13 | | fn main() {}
|
13 | | fn main() {}
|
||||||
| |____________^
|
| |____________^
|
||||||
|
= note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
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>>
|
||||||
<i32 as IsOutputType<__S>>
|
<i32 as IsOutputType<__S>>
|
||||||
<f64 as IsOutputType<__S>>
|
<f64 as IsOutputType<__S>>
|
||||||
<CharacterValueEnum as IsOutputType<__S>>
|
<CharacterValueEnum as IsOutputType<__S>>
|
||||||
<Box<T> as IsOutputType<S>>
|
<Box<T> as IsOutputType<S>>
|
||||||
<uuid::Uuid as IsOutputType<__S>>
|
<uuid::Uuid as IsOutputType<__S>>
|
||||||
<url::Url as IsOutputType<__S>>
|
<url::Url as IsOutputType<__S>>
|
||||||
<bson::datetime::DateTime as IsOutputType<__S>>
|
<bson::datetime::DateTime as IsOutputType<__S>>
|
||||||
and $N others
|
and $N others
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
error[E0277]: the trait bound `ObjA: IsInputType<__S>` is not satisfied
|
error[E0277]: the trait bound `ObjA: IsInputType<__S>` is not satisfied
|
||||||
--> fail/object/argument_non_input_type.rs:12:23
|
--> fail/object/argument_non_input_type.rs:10:1
|
||||||
|
|
|
|
||||||
12 | fn id(&self, obj: ObjA) -> &str {
|
10 | #[graphql_object]
|
||||||
| ^^^^ the trait `IsInputType<__S>` is not implemented for `ObjA`
|
| ^^^^^^^^^^^^^^^^^ the trait `IsInputType<__S>` is not implemented for `ObjA`
|
||||||
|
|
|
|
||||||
= 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>>
|
||||||
|
|
|
@ -6,13 +6,13 @@ error[E0277]: the trait bound `[bool; 2]: From<[bool; 3]>` is not satisfied
|
||||||
|
|
|
|
||||||
= help: the following other types implement trait `From<T>`:
|
= help: the following other types implement trait `From<T>`:
|
||||||
<[bool; LANES] as From<Mask<T, LANES>>>
|
<[bool; LANES] as From<Mask<T, LANES>>>
|
||||||
<[u32; 4] as From<ppv_lite86::x86_64::vec128_storage>>
|
<[u32; 4] as From<ppv_lite86::generic::vec128_storage>>
|
||||||
<[u32; 8] as From<ppv_lite86::x86_64::vec256_storage>>
|
<[u64; 2] as From<ppv_lite86::generic::vec128_storage>>
|
||||||
<[u32; 16] as From<ppv_lite86::x86_64::vec512_storage>>
|
<[u64; 4] as From<ppv_lite86::generic::vec256_storage>>
|
||||||
<[u64; 2] as From<ppv_lite86::x86_64::vec128_storage>>
|
<[T; N] as From<Simd<T, N>>>
|
||||||
<[u64; 4] as From<ppv_lite86::x86_64::vec256_storage>>
|
<[T; 1] as From<(T,)>>
|
||||||
<[u64; 8] as From<ppv_lite86::x86_64::vec512_storage>>
|
<[T; 2] as From<(T, T)>>
|
||||||
<[u128; 1] as From<ppv_lite86::x86_64::vec128_storage>>
|
<[T; 3] as From<(T, T, T)>>
|
||||||
and $N others
|
and $N others
|
||||||
= note: required for `[bool; 3]` to implement `Into<[bool; 2]>`
|
= 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)
|
= note: this error originates in the attribute macro `graphql_object` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||||
|
|
|
@ -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>>
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
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>>
|
||||||
<i32 as IsOutputType<__S>>
|
<i32 as IsOutputType<__S>>
|
||||||
<f64 as IsOutputType<__S>>
|
<f64 as IsOutputType<__S>>
|
||||||
<ObjA as IsOutputType<__S>>
|
<ObjA as IsOutputType<__S>>
|
||||||
<Box<T> as IsOutputType<S>>
|
<Box<T> as IsOutputType<S>>
|
||||||
<uuid::Uuid as IsOutputType<__S>>
|
<uuid::Uuid as IsOutputType<__S>>
|
||||||
<url::Url as IsOutputType<__S>>
|
<url::Url as IsOutputType<__S>>
|
||||||
<bson::datetime::DateTime as IsOutputType<__S>>
|
<bson::datetime::DateTime as IsOutputType<__S>>
|
||||||
and $N others
|
and $N others
|
||||||
|
|
|
@ -7,10 +7,10 @@ warning: unused variable: `obj`
|
||||||
= note: `#[warn(unused_variables)]` on by default
|
= note: `#[warn(unused_variables)]` on by default
|
||||||
|
|
||||||
error[E0277]: the trait bound `ObjA: IsInputType<__S>` is not satisfied
|
error[E0277]: the trait bound `ObjA: IsInputType<__S>` is not satisfied
|
||||||
--> fail/subscription/argument_non_input_type.rs:17:29
|
--> fail/subscription/argument_non_input_type.rs:15:1
|
||||||
|
|
|
|
||||||
17 | async fn id(&self, obj: ObjA) -> Stream<'static, &'static str> {
|
15 | #[graphql_subscription]
|
||||||
| ^^^^ the trait `IsInputType<__S>` is not implemented for `ObjA`
|
| ^^^^^^^^^^^^^^^^^^^^^^^ the trait `IsInputType<__S>` is not implemented for `ObjA`
|
||||||
|
|
|
|
||||||
= 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>>
|
||||||
|
|
|
@ -6,13 +6,13 @@ error[E0277]: the trait bound `[bool; 2]: From<[bool; 3]>` is not satisfied
|
||||||
|
|
|
|
||||||
= help: the following other types implement trait `From<T>`:
|
= help: the following other types implement trait `From<T>`:
|
||||||
<[bool; LANES] as From<Mask<T, LANES>>>
|
<[bool; LANES] as From<Mask<T, LANES>>>
|
||||||
<[u32; 4] as From<ppv_lite86::x86_64::vec128_storage>>
|
<[u32; 4] as From<ppv_lite86::generic::vec128_storage>>
|
||||||
<[u32; 8] as From<ppv_lite86::x86_64::vec256_storage>>
|
<[u64; 2] as From<ppv_lite86::generic::vec128_storage>>
|
||||||
<[u32; 16] as From<ppv_lite86::x86_64::vec512_storage>>
|
<[u64; 4] as From<ppv_lite86::generic::vec256_storage>>
|
||||||
<[u64; 2] as From<ppv_lite86::x86_64::vec128_storage>>
|
<[T; N] as From<Simd<T, N>>>
|
||||||
<[u64; 4] as From<ppv_lite86::x86_64::vec256_storage>>
|
<[T; 1] as From<(T,)>>
|
||||||
<[u64; 8] as From<ppv_lite86::x86_64::vec512_storage>>
|
<[T; 2] as From<(T, T)>>
|
||||||
<[u128; 1] as From<ppv_lite86::x86_64::vec128_storage>>
|
<[T; 3] as From<(T, T, T)>>
|
||||||
and $N others
|
and $N others
|
||||||
= note: required for `[bool; 3]` to implement `Into<[bool; 2]>`
|
= 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)
|
= note: this error originates in the attribute macro `graphql_subscription` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||||
|
|
|
@ -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>>
|
||||||
|
|
Loading…
Add table
Reference in a new issue