Skip to content

Commit fb96fb1

Browse files
committed
Update codegen tests for 1.81 Rust
1 parent fb1531f commit fb96fb1

20 files changed

+267
-267
lines changed

tests/codegen/fail/input-object/derive_incompatible_field_type.stderr

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ error[E0277]: the trait bound `ObjectA: IsInputType<__S>` is not satisfied
55
| ^^^^^^^ the trait `IsInputType<__S>` is not implemented for `ObjectA`
66
|
77
= help: the following other types implement trait `IsInputType<S>`:
8-
<&T as IsInputType<S>>
9-
<Arc<T> as IsInputType<S>>
10-
<Box<T> as IsInputType<S>>
11-
<ID as IsInputType<__S>>
12-
<Object as IsInputType<__S>>
13-
<TypeKind as IsInputType<__S>>
14-
<Vec<T> as IsInputType<S>>
15-
<[T; N] as IsInputType<S>>
8+
`&T` implements `IsInputType<S>`
9+
`Arc<T>` implements `IsInputType<S>`
10+
`Box<T>` implements `IsInputType<S>`
11+
`ID` implements `IsInputType<__S>`
12+
`Object` implements `IsInputType<__S>`
13+
`TypeKind` implements `IsInputType<__S>`
14+
`Vec<T>` implements `IsInputType<S>`
15+
`[T; N]` implements `IsInputType<S>`
1616
and $N others
1717

1818
error[E0277]: the trait bound `ObjectA: FromInputValue<__S>` is not satisfied
@@ -25,14 +25,14 @@ error[E0277]: the trait bound `ObjectA: FromInputValue<__S>` is not satisfied
2525
| ^^^^^^^ the trait `FromInputValue<__S>` is not implemented for `ObjectA`
2626
|
2727
= help: the following other types implement trait `FromInputValue<S>`:
28-
<Arc<T> as FromInputValue<S>>
29-
<Box<T> as FromInputValue<S>>
30-
<ID as FromInputValue<__S>>
31-
<Object as FromInputValue<__S>>
32-
<TypeKind as FromInputValue<__S>>
33-
<Vec<T> as FromInputValue<S>>
34-
<[T; N] as FromInputValue<S>>
35-
<bool as FromInputValue<__S>>
28+
`Arc<T>` implements `FromInputValue<S>`
29+
`Box<T>` implements `FromInputValue<S>`
30+
`ID` implements `FromInputValue<__S>`
31+
`Object` implements `FromInputValue<__S>`
32+
`TypeKind` implements `FromInputValue<__S>`
33+
`Vec<T>` implements `FromInputValue<S>`
34+
`[T; N]` implements `FromInputValue<S>`
35+
`bool` implements `FromInputValue<__S>`
3636
and $N others
3737
note: required by a bound in `Registry::<'r, S>::arg`
3838
--> $WORKSPACE/juniper/src/executor/mod.rs
@@ -50,14 +50,14 @@ error[E0277]: the trait bound `ObjectA: FromInputValue<__S>` is not satisfied
5050
| ^^^^^^^^^^^^^^^^^^ the trait `FromInputValue<__S>` is not implemented for `ObjectA`
5151
|
5252
= help: the following other types implement trait `FromInputValue<S>`:
53-
<Arc<T> as FromInputValue<S>>
54-
<Box<T> as FromInputValue<S>>
55-
<ID as FromInputValue<__S>>
56-
<Object as FromInputValue<__S>>
57-
<TypeKind as FromInputValue<__S>>
58-
<Vec<T> as FromInputValue<S>>
59-
<[T; N] as FromInputValue<S>>
60-
<bool as FromInputValue<__S>>
53+
`Arc<T>` implements `FromInputValue<S>`
54+
`Box<T>` implements `FromInputValue<S>`
55+
`ID` implements `FromInputValue<__S>`
56+
`Object` implements `FromInputValue<__S>`
57+
`TypeKind` implements `FromInputValue<__S>`
58+
`Vec<T>` implements `FromInputValue<S>`
59+
`[T; N]` implements `FromInputValue<S>`
60+
`bool` implements `FromInputValue<__S>`
6161
and $N others
6262
= note: this error originates in the derive macro `GraphQLInputObject` (in Nightly builds, run with -Z macro-backtrace for more info)
6363

@@ -68,13 +68,13 @@ error[E0277]: the trait bound `ObjectA: ToInputValue<_>` is not satisfied
6868
| ^^^^^^^^^^^^^^^^^^ the trait `ToInputValue<_>` is not implemented for `ObjectA`
6969
|
7070
= help: the following other types implement trait `ToInputValue<S>`:
71-
<&'a T as ToInputValue<S>>
72-
<&'a [T] as ToInputValue<S>>
73-
<&'a str as ToInputValue<S>>
74-
<Arc<T> as ToInputValue<S>>
75-
<Box<T> as ToInputValue<S>>
76-
<ID as ToInputValue<__S>>
77-
<Object as ToInputValue<__S>>
78-
<TypeKind as ToInputValue<__S>>
71+
`&'a T` implements `ToInputValue<S>`
72+
`&'a [T]` implements `ToInputValue<S>`
73+
`&'a str` implements `ToInputValue<S>`
74+
`Arc<T>` implements `ToInputValue<S>`
75+
`Box<T>` implements `ToInputValue<S>`
76+
`ID` implements `ToInputValue<__S>`
77+
`Object` implements `ToInputValue<__S>`
78+
`TypeKind` implements `ToInputValue<__S>`
7979
and $N others
8080
= note: this error originates in the derive macro `GraphQLInputObject` (in Nightly builds, run with -Z macro-backtrace for more info)

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ error[E0277]: the trait bound `ObjB: IsOutputType<__S>` is not satisfied
55
| ^^^^^^^^^^^^^^^^^^^^ the trait `IsOutputType<__S>` is not implemented for `ObjB`
66
|
77
= help: the following other types implement trait `IsOutputType<S>`:
8-
<&T as IsOutputType<S>>
9-
<Arc<T> as IsOutputType<S>>
10-
<Argument<'a, S> as IsOutputType<S>>
11-
<Box<T> as IsOutputType<S>>
12-
<CharacterValueEnum as IsOutputType<__S>>
13-
<EnumValue as IsOutputType<__S>>
14-
<ID as IsOutputType<__S>>
15-
<SchemaType<'a, S> as IsOutputType<S>>
8+
`&T` implements `IsOutputType<S>`
9+
`Arc<T>` implements `IsOutputType<S>`
10+
`Argument<'a, S>` implements `IsOutputType<S>`
11+
`Box<T>` implements `IsOutputType<S>`
12+
`CharacterValueEnum` implements `IsOutputType<__S>`
13+
`EnumValue` implements `IsOutputType<__S>`
14+
`ID` implements `IsOutputType<__S>`
15+
`SchemaType<'a, S>` implements `IsOutputType<S>`
1616
and $N others

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ error[E0277]: the trait bound `ObjB: IsOutputType<__S>` is not satisfied
55
| ^^^^^^^^^^^^^^^^ the trait `IsOutputType<__S>` is not implemented for `ObjB`
66
|
77
= help: the following other types implement trait `IsOutputType<S>`:
8-
<&T as IsOutputType<S>>
9-
<Arc<T> as IsOutputType<S>>
10-
<Argument<'a, S> as IsOutputType<S>>
11-
<Box<T> as IsOutputType<S>>
12-
<CharacterValueEnum as IsOutputType<__S>>
13-
<EnumValue as IsOutputType<__S>>
14-
<ID as IsOutputType<__S>>
15-
<SchemaType<'a, S> as IsOutputType<S>>
8+
`&T` implements `IsOutputType<S>`
9+
`Arc<T>` implements `IsOutputType<S>`
10+
`Argument<'a, S>` implements `IsOutputType<S>`
11+
`Box<T>` implements `IsOutputType<S>`
12+
`CharacterValueEnum` implements `IsOutputType<__S>`
13+
`EnumValue` implements `IsOutputType<__S>`
14+
`ID` implements `IsOutputType<__S>`
15+
`SchemaType<'a, S>` implements `IsOutputType<S>`
1616
and $N others

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

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ error[E0277]: the trait bound `ObjA: IsInputType<__S>` is not satisfied
55
| ^^^^ the trait `IsInputType<__S>` is not implemented for `ObjA`
66
|
77
= help: the following other types implement trait `IsInputType<S>`:
8-
<&T as IsInputType<S>>
9-
<Arc<T> as IsInputType<S>>
10-
<Box<T> as IsInputType<S>>
11-
<ID as IsInputType<__S>>
12-
<TypeKind as IsInputType<__S>>
13-
<Vec<T> as IsInputType<S>>
14-
<[T; N] as IsInputType<S>>
15-
<[T] as IsInputType<S>>
8+
`&T` implements `IsInputType<S>`
9+
`Arc<T>` implements `IsInputType<S>`
10+
`Box<T>` implements `IsInputType<S>`
11+
`ID` implements `IsInputType<__S>`
12+
`TypeKind` implements `IsInputType<__S>`
13+
`Vec<T>` implements `IsInputType<S>`
14+
`[T; N]` implements `IsInputType<S>`
15+
`[T]` implements `IsInputType<S>`
1616
and $N others
1717

1818
error[E0277]: the trait bound `ObjA: FromInputValue<__S>` is not satisfied
@@ -25,14 +25,14 @@ error[E0277]: the trait bound `ObjA: FromInputValue<__S>` is not satisfied
2525
| ^^^^ the trait `FromInputValue<__S>` is not implemented for `ObjA`
2626
|
2727
= help: the following other types implement trait `FromInputValue<S>`:
28-
<Arc<T> as FromInputValue<S>>
29-
<Box<T> as FromInputValue<S>>
30-
<ID as FromInputValue<__S>>
31-
<TypeKind as FromInputValue<__S>>
32-
<Vec<T> as FromInputValue<S>>
33-
<[T; N] as FromInputValue<S>>
34-
<bool as FromInputValue<__S>>
35-
<f64 as FromInputValue<__S>>
28+
`Arc<T>` implements `FromInputValue<S>`
29+
`Box<T>` implements `FromInputValue<S>`
30+
`ID` implements `FromInputValue<__S>`
31+
`TypeKind` implements `FromInputValue<__S>`
32+
`Vec<T>` implements `FromInputValue<S>`
33+
`[T; N]` implements `FromInputValue<S>`
34+
`bool` implements `FromInputValue<__S>`
35+
`f64` implements `FromInputValue<__S>`
3636
and $N others
3737
note: required by a bound in `Registry::<'r, S>::arg`
3838
--> $WORKSPACE/juniper/src/executor/mod.rs

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ error[E0277]: the trait bound `[bool; 2]: From<[bool; 3]>` is not satisfied
55
| ^^^^^^^^^^^^^^^^^^^^ the trait `From<[bool; 3]>` is not implemented for `[bool; 2]`, which is required by `[bool; 3]: Into<_>`
66
|
77
= help: the following other types implement trait `From<T>`:
8-
<[T; 10] as From<(T, T, T, T, T, T, T, T, T, T)>>
9-
<[T; 11] as From<(T, T, T, T, T, T, T, T, T, T, T)>>
10-
<[T; 12] as From<(T, T, T, T, T, T, T, T, T, T, T, T)>>
11-
<[T; 1] as From<(T,)>>
12-
<[T; 2] as From<(T, T)>>
13-
<[T; 3] as From<(T, T, T)>>
14-
<[T; 4] as From<(T, T, T, T)>>
15-
<[T; 5] as From<(T, T, T, T, T)>>
8+
`[T; 10]` implements `From<(T, T, T, T, T, T, T, T, T, T)>`
9+
`[T; 11]` implements `From<(T, T, T, T, T, T, T, T, T, T, T)>`
10+
`[T; 12]` implements `From<(T, T, T, T, T, T, T, T, T, T, T, T)>`
11+
`[T; 1]` implements `From<(T,)>`
12+
`[T; 2]` implements `From<(T, T)>`
13+
`[T; 3]` implements `From<(T, T, T)>`
14+
`[T; 4]` implements `From<(T, T, T, T)>`
15+
`[T; 5]` implements `From<(T, T, 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/field_non_output_return_type.stderr

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ error[E0277]: the trait bound `ObjB: IsOutputType<__S>` is not satisfied
55
| ^^^^^^^^^^^^^^^^^^^^ the trait `IsOutputType<__S>` is not implemented for `ObjB`
66
|
77
= help: the following other types implement trait `IsOutputType<S>`:
8-
<&T as IsOutputType<S>>
9-
<Arc<T> as IsOutputType<S>>
10-
<Argument<'a, S> as IsOutputType<S>>
11-
<Box<T> as IsOutputType<S>>
12-
<CharacterValueEnum as IsOutputType<__S>>
13-
<EnumValue as IsOutputType<__S>>
14-
<ID as IsOutputType<__S>>
15-
<SchemaType<'a, S> as IsOutputType<S>>
8+
`&T` implements `IsOutputType<S>`
9+
`Arc<T>` implements `IsOutputType<S>`
10+
`Argument<'a, S>` implements `IsOutputType<S>`
11+
`Box<T>` implements `IsOutputType<S>`
12+
`CharacterValueEnum` implements `IsOutputType<__S>`
13+
`EnumValue` implements `IsOutputType<__S>`
14+
`ID` implements `IsOutputType<__S>`
15+
`SchemaType<'a, S>` implements `IsOutputType<S>`
1616
and $N others

tests/codegen/fail/object/argument_non_input_type.stderr

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ error[E0277]: the trait bound `ObjA: IsInputType<__S>` is not satisfied
55
| ^^^^ the trait `IsInputType<__S>` is not implemented for `ObjA`
66
|
77
= help: the following other types implement trait `IsInputType<S>`:
8-
<&T as IsInputType<S>>
9-
<Arc<T> as IsInputType<S>>
10-
<Box<T> as IsInputType<S>>
11-
<ID as IsInputType<__S>>
12-
<TypeKind as IsInputType<__S>>
13-
<Vec<T> as IsInputType<S>>
14-
<[T; N] as IsInputType<S>>
15-
<[T] as IsInputType<S>>
8+
`&T` implements `IsInputType<S>`
9+
`Arc<T>` implements `IsInputType<S>`
10+
`Box<T>` implements `IsInputType<S>`
11+
`ID` implements `IsInputType<__S>`
12+
`TypeKind` implements `IsInputType<__S>`
13+
`Vec<T>` implements `IsInputType<S>`
14+
`[T; N]` implements `IsInputType<S>`
15+
`[T]` implements `IsInputType<S>`
1616
and $N others
1717

1818
error[E0277]: the trait bound `ObjA: FromInputValue<__S>` is not satisfied
@@ -25,14 +25,14 @@ error[E0277]: the trait bound `ObjA: FromInputValue<__S>` is not satisfied
2525
| ^^^^ the trait `FromInputValue<__S>` is not implemented for `ObjA`
2626
|
2727
= help: the following other types implement trait `FromInputValue<S>`:
28-
<Arc<T> as FromInputValue<S>>
29-
<Box<T> as FromInputValue<S>>
30-
<ID as FromInputValue<__S>>
31-
<TypeKind as FromInputValue<__S>>
32-
<Vec<T> as FromInputValue<S>>
33-
<[T; N] as FromInputValue<S>>
34-
<bool as FromInputValue<__S>>
35-
<f64 as FromInputValue<__S>>
28+
`Arc<T>` implements `FromInputValue<S>`
29+
`Box<T>` implements `FromInputValue<S>`
30+
`ID` implements `FromInputValue<__S>`
31+
`TypeKind` implements `FromInputValue<__S>`
32+
`Vec<T>` implements `FromInputValue<S>`
33+
`[T; N]` implements `FromInputValue<S>`
34+
`bool` implements `FromInputValue<__S>`
35+
`f64` implements `FromInputValue<__S>`
3636
and $N others
3737
note: required by a bound in `Registry::<'r, S>::arg`
3838
--> $WORKSPACE/juniper/src/executor/mod.rs
@@ -50,14 +50,14 @@ error[E0277]: the trait bound `ObjA: FromInputValue<__S>` is not satisfied
5050
| ^^^^^^^^^^^^^^^^^ the trait `FromInputValue<__S>` is not implemented for `ObjA`
5151
|
5252
= help: the following other types implement trait `FromInputValue<S>`:
53-
<Arc<T> as FromInputValue<S>>
54-
<Box<T> as FromInputValue<S>>
55-
<ID as FromInputValue<__S>>
56-
<TypeKind as FromInputValue<__S>>
57-
<Vec<T> as FromInputValue<S>>
58-
<[T; N] as FromInputValue<S>>
59-
<bool as FromInputValue<__S>>
60-
<f64 as FromInputValue<__S>>
53+
`Arc<T>` implements `FromInputValue<S>`
54+
`Box<T>` implements `FromInputValue<S>`
55+
`ID` implements `FromInputValue<__S>`
56+
`TypeKind` implements `FromInputValue<__S>`
57+
`Vec<T>` implements `FromInputValue<S>`
58+
`[T; N]` implements `FromInputValue<S>`
59+
`bool` implements `FromInputValue<__S>`
60+
`f64` implements `FromInputValue<__S>`
6161
and $N others
6262
= note: this error originates in the attribute macro `graphql_object` (in Nightly builds, run with -Z macro-backtrace for more info)
6363

@@ -68,14 +68,14 @@ error[E0277]: the trait bound `ObjA: FromInputValue<__S>` is not satisfied
6868
| ^^^^ the trait `FromInputValue<__S>` is not implemented for `ObjA`
6969
|
7070
= help: the following other types implement trait `FromInputValue<S>`:
71-
<Arc<T> as FromInputValue<S>>
72-
<Box<T> as FromInputValue<S>>
73-
<ID as FromInputValue<__S>>
74-
<TypeKind as FromInputValue<__S>>
75-
<Vec<T> as FromInputValue<S>>
76-
<[T; N] as FromInputValue<S>>
77-
<bool as FromInputValue<__S>>
78-
<f64 as FromInputValue<__S>>
71+
`Arc<T>` implements `FromInputValue<S>`
72+
`Box<T>` implements `FromInputValue<S>`
73+
`ID` implements `FromInputValue<__S>`
74+
`TypeKind` implements `FromInputValue<__S>`
75+
`Vec<T>` implements `FromInputValue<S>`
76+
`[T; N]` implements `FromInputValue<S>`
77+
`bool` implements `FromInputValue<__S>`
78+
`f64` implements `FromInputValue<__S>`
7979
and $N others
8080

8181
warning: unused variable: `obj`

tests/codegen/fail/object/argument_wrong_default_array.stderr

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ error[E0277]: the trait bound `[bool; 2]: From<[bool; 3]>` is not satisfied
55
| ^^^^^^^^^^^^^^^^^ the trait `From<[bool; 3]>` is not implemented for `[bool; 2]`, which is required by `[bool; 3]: Into<_>`
66
|
77
= help: the following other types implement trait `From<T>`:
8-
<[T; 10] as From<(T, T, T, T, T, T, T, T, T, T)>>
9-
<[T; 11] as From<(T, T, T, T, T, T, T, T, T, T, T)>>
10-
<[T; 12] as From<(T, T, T, T, T, T, T, T, T, T, T, T)>>
11-
<[T; 1] as From<(T,)>>
12-
<[T; 2] as From<(T, T)>>
13-
<[T; 3] as From<(T, T, T)>>
14-
<[T; 4] as From<(T, T, T, T)>>
15-
<[T; 5] as From<(T, T, T, T, T)>>
8+
`[T; 10]` implements `From<(T, T, T, T, T, T, T, T, T, T)>`
9+
`[T; 11]` implements `From<(T, T, T, T, T, T, T, T, T, T, T)>`
10+
`[T; 12]` implements `From<(T, T, T, T, T, T, T, T, T, T, T, T)>`
11+
`[T; 1]` implements `From<(T,)>`
12+
`[T; 2]` implements `From<(T, T)>`
13+
`[T; 3]` implements `From<(T, T, T)>`
14+
`[T; 4]` implements `From<(T, T, T, T)>`
15+
`[T; 5]` implements `From<(T, T, 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)

tests/codegen/fail/object/attr_field_non_output_return_type.stderr

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ error[E0277]: the trait bound `ObjB: IsOutputType<__S>` is not satisfied
55
| ^^^^^^^^^^^^^^^^^ the trait `IsOutputType<__S>` is not implemented for `ObjB`
66
|
77
= help: the following other types implement trait `IsOutputType<S>`:
8-
<&T as IsOutputType<S>>
9-
<Arc<T> as IsOutputType<S>>
10-
<Argument<'a, S> as IsOutputType<S>>
11-
<Box<T> as IsOutputType<S>>
12-
<EnumValue as IsOutputType<__S>>
13-
<ID as IsOutputType<__S>>
14-
<ObjA as IsOutputType<__S>>
15-
<SchemaType<'a, S> as IsOutputType<S>>
8+
`&T` implements `IsOutputType<S>`
9+
`Arc<T>` implements `IsOutputType<S>`
10+
`Argument<'a, S>` implements `IsOutputType<S>`
11+
`Box<T>` implements `IsOutputType<S>`
12+
`EnumValue` implements `IsOutputType<__S>`
13+
`ID` implements `IsOutputType<__S>`
14+
`ObjA` implements `IsOutputType<__S>`
15+
`SchemaType<'a, S>` implements `IsOutputType<S>`
1616
and $N others

tests/codegen/fail/object/derive_field_non_output_return_type.stderr

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ error[E0277]: the trait bound `ObjB: IsOutputType<__S>` is not satisfied
55
| ^^^^^^^^^^^^^ the trait `IsOutputType<__S>` is not implemented for `ObjB`
66
|
77
= help: the following other types implement trait `IsOutputType<S>`:
8-
<&T as IsOutputType<S>>
9-
<Arc<T> as IsOutputType<S>>
10-
<Argument<'a, S> as IsOutputType<S>>
11-
<Box<T> as IsOutputType<S>>
12-
<EnumValue as IsOutputType<__S>>
13-
<ID as IsOutputType<__S>>
14-
<ObjA as IsOutputType<__S>>
15-
<SchemaType<'a, S> as IsOutputType<S>>
8+
`&T` implements `IsOutputType<S>`
9+
`Arc<T>` implements `IsOutputType<S>`
10+
`Argument<'a, S>` implements `IsOutputType<S>`
11+
`Box<T>` implements `IsOutputType<S>`
12+
`EnumValue` implements `IsOutputType<__S>`
13+
`ID` implements `IsOutputType<__S>`
14+
`ObjA` implements `IsOutputType<__S>`
15+
`SchemaType<'a, S>` implements `IsOutputType<S>`
1616
and $N others

0 commit comments

Comments
 (0)