Skip to content

Commit 421c8c9

Browse files
authored
Fix codegen tests for latest nightly (#1182)
1 parent 108ccf2 commit 421c8c9

15 files changed

+111
-108
lines changed

tests/codegen/fail/interface/struct/attr_cyclic_impl.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ note: cycle used when collecting item types in top-level module
2424
12 | |
2525
13 | | fn main() {}
2626
| |____________^
27+
= 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
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
error[E0277]: the trait bound `ObjB: IsOutputType<__S>` is not satisfied
2-
--> fail/interface/struct/attr_field_non_output_return_type.rs:10:9
3-
|
4-
10 | id: ObjB,
5-
| ^^^^ the trait `IsOutputType<__S>` is not implemented for `ObjB`
6-
|
7-
= help: the following other types implement trait `IsOutputType<S>`:
8-
<bool as IsOutputType<__S>>
9-
<i32 as IsOutputType<__S>>
10-
<f64 as IsOutputType<__S>>
11-
<CharacterValueEnum as IsOutputType<__S>>
12-
<Box<T> as IsOutputType<S>>
13-
<uuid::Uuid as IsOutputType<__S>>
14-
<url::Url as IsOutputType<__S>>
15-
<bson::datetime::DateTime as IsOutputType<__S>>
16-
and $N others
2+
--> fail/interface/struct/attr_field_non_output_return_type.rs:8:1
3+
|
4+
8 | #[graphql_interface]
5+
| ^^^^^^^^^^^^^^^^^^^^ the trait `IsOutputType<__S>` is not implemented for `ObjB`
6+
|
7+
= help: the following other types implement trait `IsOutputType<S>`:
8+
<bool as IsOutputType<__S>>
9+
<i32 as IsOutputType<__S>>
10+
<f64 as IsOutputType<__S>>
11+
<CharacterValueEnum as IsOutputType<__S>>
12+
<Box<T> as IsOutputType<S>>
13+
<uuid::Uuid as IsOutputType<__S>>
14+
<url::Url as IsOutputType<__S>>
15+
<bson::datetime::DateTime as IsOutputType<__S>>
16+
and $N others

tests/codegen/fail/interface/struct/derive_cyclic_impl.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ note: cycle used when collecting item types in top-level module
2424
14 | |
2525
15 | | fn main() {}
2626
| |____________^
27+
= 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
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
error[E0277]: the trait bound `ObjB: IsOutputType<__S>` is not satisfied
2-
--> fail/interface/struct/derive_field_non_output_return_type.rs:10:9
3-
|
4-
10 | id: ObjB,
5-
| ^^^^ the trait `IsOutputType<__S>` is not implemented for `ObjB`
6-
|
7-
= help: the following other types implement trait `IsOutputType<S>`:
8-
<bool as IsOutputType<__S>>
9-
<i32 as IsOutputType<__S>>
10-
<f64 as IsOutputType<__S>>
11-
<CharacterValueEnum as IsOutputType<__S>>
12-
<Box<T> as IsOutputType<S>>
13-
<uuid::Uuid as IsOutputType<__S>>
14-
<url::Url as IsOutputType<__S>>
15-
<bson::datetime::DateTime as IsOutputType<__S>>
16-
and $N others
2+
--> fail/interface/struct/derive_field_non_output_return_type.rs:8:10
3+
|
4+
8 | #[derive(GraphQLInterface)]
5+
| ^^^^^^^^^^^^^^^^ the trait `IsOutputType<__S>` is not implemented for `ObjB`
6+
|
7+
= help: the following other types implement trait `IsOutputType<S>`:
8+
<bool as IsOutputType<__S>>
9+
<i32 as IsOutputType<__S>>
10+
<f64 as IsOutputType<__S>>
11+
<CharacterValueEnum as IsOutputType<__S>>
12+
<Box<T> as IsOutputType<S>>
13+
<uuid::Uuid as IsOutputType<__S>>
14+
<url::Url as IsOutputType<__S>>
15+
<bson::datetime::DateTime as IsOutputType<__S>>
16+
and $N others

tests/codegen/fail/interface/trait/argument_non_input_type.stderr

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
error[E0277]: the trait bound `ObjA: IsInputType<__S>` is not satisfied
2-
--> fail/interface/trait/argument_non_input_type.rs:10:23
3-
|
4-
10 | fn id(&self, obj: ObjA) -> &str;
5-
| ^^^^ the trait `IsInputType<__S>` is not implemented for `ObjA`
6-
|
7-
= help: the following other types implement trait `IsInputType<S>`:
8-
<bool as IsInputType<__S>>
9-
<i32 as IsInputType<__S>>
10-
<f64 as IsInputType<__S>>
11-
<Box<T> as IsInputType<S>>
12-
<uuid::Uuid as IsInputType<__S>>
13-
<url::Url as IsInputType<__S>>
14-
<bson::datetime::DateTime as IsInputType<__S>>
15-
<juniper::schema::model::DirectiveLocation as IsInputType<__S>>
16-
and $N others
2+
--> fail/interface/trait/argument_non_input_type.rs:8:1
3+
|
4+
8 | #[graphql_interface]
5+
| ^^^^^^^^^^^^^^^^^^^^ the trait `IsInputType<__S>` is not implemented for `ObjA`
6+
|
7+
= help: the following other types implement trait `IsInputType<S>`:
8+
<bool as IsInputType<__S>>
9+
<i32 as IsInputType<__S>>
10+
<f64 as IsInputType<__S>>
11+
<Box<T> as IsInputType<S>>
12+
<uuid::Uuid as IsInputType<__S>>
13+
<url::Url as IsInputType<__S>>
14+
<bson::datetime::DateTime as IsInputType<__S>>
15+
<juniper::schema::model::DirectiveLocation as IsInputType<__S>>
16+
and $N others
1717

1818
error[E0277]: the trait bound `ObjA: FromInputValue<__S>` is not satisfied
1919
--> fail/interface/trait/argument_non_input_type.rs:8:1

tests/codegen/fail/interface/trait/argument_wrong_default_array.stderr

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ error[E0277]: the trait bound `[bool; 2]: From<[bool; 3]>` is not satisfied
66
|
77
= help: the following other types implement trait `From<T>`:
88
<[bool; LANES] as From<Mask<T, LANES>>>
9-
<[u32; 4] as From<ppv_lite86::x86_64::vec128_storage>>
10-
<[u32; 8] as From<ppv_lite86::x86_64::vec256_storage>>
11-
<[u32; 16] as From<ppv_lite86::x86_64::vec512_storage>>
12-
<[u64; 2] as From<ppv_lite86::x86_64::vec128_storage>>
13-
<[u64; 4] as From<ppv_lite86::x86_64::vec256_storage>>
14-
<[u64; 8] as From<ppv_lite86::x86_64::vec512_storage>>
15-
<[u128; 1] as From<ppv_lite86::x86_64::vec128_storage>>
9+
<[u32; 4] as From<ppv_lite86::generic::vec128_storage>>
10+
<[u64; 2] as From<ppv_lite86::generic::vec128_storage>>
11+
<[u64; 4] as From<ppv_lite86::generic::vec256_storage>>
12+
<[T; N] as From<Simd<T, N>>>
13+
<[T; 1] as From<(T,)>>
14+
<[T; 2] as From<(T, T)>>
15+
<[T; 3] as From<(T, T, T)>>
1616
and $N others
1717
= note: required for `[bool; 3]` to implement `Into<[bool; 2]>`
1818
= note: this error originates in the attribute macro `graphql_interface` (in Nightly builds, run with -Z macro-backtrace for more info)

tests/codegen/fail/interface/trait/cyclic_impl.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ note: cycle used when collecting item types in top-level module
2424
12 | |
2525
13 | | fn main() {}
2626
| |____________^
27+
= 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
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
error[E0277]: the trait bound `ObjB: IsOutputType<__S>` is not satisfied
2-
--> fail/interface/trait/field_non_output_return_type.rs:10:21
3-
|
4-
10 | fn id(&self) -> ObjB;
5-
| ^^^^ the trait `IsOutputType<__S>` is not implemented for `ObjB`
6-
|
7-
= help: the following other types implement trait `IsOutputType<S>`:
8-
<bool as IsOutputType<__S>>
9-
<i32 as IsOutputType<__S>>
10-
<f64 as IsOutputType<__S>>
11-
<CharacterValueEnum as IsOutputType<__S>>
12-
<Box<T> as IsOutputType<S>>
13-
<uuid::Uuid as IsOutputType<__S>>
14-
<url::Url as IsOutputType<__S>>
15-
<bson::datetime::DateTime as IsOutputType<__S>>
16-
and $N others
2+
--> fail/interface/trait/field_non_output_return_type.rs:8:1
3+
|
4+
8 | #[graphql_interface]
5+
| ^^^^^^^^^^^^^^^^^^^^ the trait `IsOutputType<__S>` is not implemented for `ObjB`
6+
|
7+
= help: the following other types implement trait `IsOutputType<S>`:
8+
<bool as IsOutputType<__S>>
9+
<i32 as IsOutputType<__S>>
10+
<f64 as IsOutputType<__S>>
11+
<CharacterValueEnum as IsOutputType<__S>>
12+
<Box<T> as IsOutputType<S>>
13+
<uuid::Uuid as IsOutputType<__S>>
14+
<url::Url as IsOutputType<__S>>
15+
<bson::datetime::DateTime as IsOutputType<__S>>
16+
and $N others

tests/codegen/fail/object/argument_non_input_type.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
error[E0277]: the trait bound `ObjA: IsInputType<__S>` is not satisfied
2-
--> fail/object/argument_non_input_type.rs:12:23
2+
--> fail/object/argument_non_input_type.rs:10:1
33
|
4-
12 | fn id(&self, obj: ObjA) -> &str {
5-
| ^^^^ the trait `IsInputType<__S>` is not implemented for `ObjA`
4+
10 | #[graphql_object]
5+
| ^^^^^^^^^^^^^^^^^ the trait `IsInputType<__S>` is not implemented for `ObjA`
66
|
77
= help: the following other types implement trait `IsInputType<S>`:
88
<bool as IsInputType<__S>>

tests/codegen/fail/object/argument_wrong_default_array.stderr

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ error[E0277]: the trait bound `[bool; 2]: From<[bool; 3]>` is not satisfied
66
|
77
= help: the following other types implement trait `From<T>`:
88
<[bool; LANES] as From<Mask<T, LANES>>>
9-
<[u32; 4] as From<ppv_lite86::x86_64::vec128_storage>>
10-
<[u32; 8] as From<ppv_lite86::x86_64::vec256_storage>>
11-
<[u32; 16] as From<ppv_lite86::x86_64::vec512_storage>>
12-
<[u64; 2] as From<ppv_lite86::x86_64::vec128_storage>>
13-
<[u64; 4] as From<ppv_lite86::x86_64::vec256_storage>>
14-
<[u64; 8] as From<ppv_lite86::x86_64::vec512_storage>>
15-
<[u128; 1] as From<ppv_lite86::x86_64::vec128_storage>>
9+
<[u32; 4] as From<ppv_lite86::generic::vec128_storage>>
10+
<[u64; 2] as From<ppv_lite86::generic::vec128_storage>>
11+
<[u64; 4] as From<ppv_lite86::generic::vec256_storage>>
12+
<[T; N] as From<Simd<T, N>>>
13+
<[T; 1] as From<(T,)>>
14+
<[T; 2] as From<(T, T)>>
15+
<[T; 3] as From<(T, T, T)>>
1616
and $N others
1717
= note: required for `[bool; 3]` to implement `Into<[bool; 2]>`
1818
= note: this error originates in the attribute macro `graphql_object` (in Nightly builds, run with -Z macro-backtrace for more info)

0 commit comments

Comments
 (0)