Skip to content

Commit 653d839

Browse files
committed
Update codegen tests for 1.95 Rust
1 parent a47d94d commit 653d839

11 files changed

Lines changed: 27 additions & 45 deletions

tests/codegen/fail/input_object/enum/derive_incompatible_field_type.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ help: the trait `IsInputType<__S>` is not implemented for `ObjectA`
1515
`ArcStr` implements `IsInputType<__S>`
1616
`Box<T>` implements `IsInputType<S>`
1717
`ID` implements `IsInputType<__S>`
18+
`Nullable<T>` implements `IsInputType<S>`
1819
`Object` implements `IsInputType<__S>`
1920
`Vec<T>` implements `IsInputType<S>`
20-
`[T; N]` implements `IsInputType<S>`
2121
and $N others
2222
= note: required for `std::option::Option<ObjectA>` to implement `IsInputType<__S>`
2323
= note: this error originates in the derive macro `GraphQLInputObject` (in Nightly builds, run with -Z macro-backtrace for more info)
@@ -38,10 +38,10 @@ help: the trait `FromInputValue<__S>` is not implemented for `ObjectA`
3838
`ArcStr` implements `FromInputValue<__S>`
3939
`Box<T>` implements `FromInputValue<S>`
4040
`ID` implements `FromInputValue<__S>`
41+
`Nullable<T>` implements `FromInputValue<S>`
4142
`Object` implements `FromInputValue<__S>`
4243
`Vec<T>` implements `FromInputValue<S>`
4344
`[T; N]` implements `FromInputValue<S>`
44-
`bool` implements `FromInputValue<__S>`
4545
and $N others
4646
= note: required for `std::option::Option<ObjectA>` to implement `FromInputValue<__S>`
4747
note: required by a bound in `Registry::<S>::arg`
@@ -70,10 +70,10 @@ help: the trait `FromInputValue<__S>` is not implemented for `ObjectA`
7070
`ArcStr` implements `FromInputValue<__S>`
7171
`Box<T>` implements `FromInputValue<S>`
7272
`ID` implements `FromInputValue<__S>`
73+
`Nullable<T>` implements `FromInputValue<S>`
7374
`Object` implements `FromInputValue<__S>`
7475
`Vec<T>` implements `FromInputValue<S>`
7576
`[T; N]` implements `FromInputValue<S>`
76-
`bool` implements `FromInputValue<__S>`
7777
and $N others
7878
= note: this error originates in the derive macro `GraphQLInputObject` (in Nightly builds, run with -Z macro-backtrace for more info)
7979

@@ -94,9 +94,9 @@ help: the trait `ToInputValue<_>` is not implemented for `ObjectA`
9494
`ArcStr` implements `ToInputValue<__S>`
9595
`Box<T>` implements `ToInputValue<S>`
9696
`ID` implements `ToInputValue<__S>`
97+
`Nullable<T>` implements `ToInputValue<S>`
9798
`Object` implements `ToInputValue<__S>`
9899
`Value<S>` implements `ToInputValue<S>`
99-
`Vec<T>` implements `ToInputValue<S>`
100100
and $N others
101101
= note: required for `&ObjectA` to implement `ToInputValue<_>`
102102
= note: 1 redundant requirement hidden

tests/codegen/fail/input_object/struct/derive_incompatible_field_type.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ help: the trait `IsInputType<__S>` is not implemented for `ObjectA`
1515
`ArcStr` implements `IsInputType<__S>`
1616
`Box<T>` implements `IsInputType<S>`
1717
`ID` implements `IsInputType<__S>`
18+
`Nullable<T>` implements `IsInputType<S>`
1819
`Object` implements `IsInputType<__S>`
1920
`Vec<T>` implements `IsInputType<S>`
20-
`[T; N]` implements `IsInputType<S>`
2121
and $N others
2222

2323
error[E0277]: the trait bound `ObjectA: FromInputValue<__S>` is not satisfied
@@ -39,10 +39,10 @@ help: the trait `FromInputValue<__S>` is not implemented for `ObjectA`
3939
`ArcStr` implements `FromInputValue<__S>`
4040
`Box<T>` implements `FromInputValue<S>`
4141
`ID` implements `FromInputValue<__S>`
42+
`Nullable<T>` implements `FromInputValue<S>`
4243
`Object` implements `FromInputValue<__S>`
4344
`Vec<T>` implements `FromInputValue<S>`
4445
`[T; N]` implements `FromInputValue<S>`
45-
`bool` implements `FromInputValue<__S>`
4646
and $N others
4747
note: required by a bound in `Registry::<S>::arg`
4848
--> $WORKSPACE/juniper/src/executor/mod.rs
@@ -69,10 +69,10 @@ help: the trait `FromInputValue<__S>` is not implemented for `ObjectA`
6969
`ArcStr` implements `FromInputValue<__S>`
7070
`Box<T>` implements `FromInputValue<S>`
7171
`ID` implements `FromInputValue<__S>`
72+
`Nullable<T>` implements `FromInputValue<S>`
7273
`Object` implements `FromInputValue<__S>`
7374
`Vec<T>` implements `FromInputValue<S>`
7475
`[T; N]` implements `FromInputValue<S>`
75-
`bool` implements `FromInputValue<__S>`
7676
and $N others
7777
= note: this error originates in the derive macro `GraphQLInputObject` (in Nightly builds, run with -Z macro-backtrace for more info)
7878

@@ -93,8 +93,8 @@ help: the trait `ToInputValue<_>` is not implemented for `ObjectA`
9393
`ArcStr` implements `ToInputValue<__S>`
9494
`Box<T>` implements `ToInputValue<S>`
9595
`ID` implements `ToInputValue<__S>`
96+
`Nullable<T>` implements `ToInputValue<S>`
9697
`Object` implements `ToInputValue<__S>`
9798
`Value<S>` implements `ToInputValue<S>`
98-
`Vec<T>` implements `ToInputValue<S>`
9999
and $N others
100100
= 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_implementers_duplicate_pretty.stderr

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,3 @@ error: duplicated attribute argument found
33
|
44
9 | #[graphql_interface(for = [ObjA, ObjA])]
55
| ^^^^
6-
7-
error[E0425]: cannot find type `CharacterValue` in this scope
8-
--> fail/interface/struct/attr_implementers_duplicate_pretty.rs:4:18
9-
|
10-
4 | #[graphql(impl = CharacterValue)]
11-
| ^^^^^^^^^^^^^^ not found in this scope

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ error[E0658]: use of unstable library feature `str_as_str`
2424
= note: see issue #130366 <https://github.com/rust-lang/rust/issues/130366> for more information
2525
= note: this error 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)
2626

27-
error[E0277]: the trait bound `ObjA: FieldMeta<DefaultScalarValue, 11301463986558097276003903130001171064>` is not satisfied
27+
error[E0277]: the trait bound `ObjA: juniper::macros::reflect::FieldMeta<DefaultScalarValue, 11301463986558097276003903130001171064>` is not satisfied
2828
--> fail/interface/struct/attr_missing_field.rs:9:27
2929
|
3030
9 | #[graphql_interface(for = ObjA)]
@@ -55,7 +55,7 @@ error[E0080]: evaluation panicked: failed to implement interface `Character` on
5555
|
5656
= note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info)
5757

58-
error[E0277]: the trait bound `ObjA: reflect::Field<__S, 11301463986558097276003903130001171064>` is not satisfied
58+
error[E0277]: the trait bound `ObjA: juniper::macros::reflect::Field<__S, 11301463986558097276003903130001171064>` is not satisfied
5959
--> fail/interface/struct/attr_missing_field.rs:11:5
6060
|
6161
11 | id: String,
@@ -69,7 +69,7 @@ help: the trait `Field<__S, 11301463986558097276003903130001171064>` is not impl
6969
| ^^^^^^^^^^^^^
7070
= note: this error originates in the derive macro `GraphQLObject` (in Nightly builds, run with -Z macro-backtrace for more info)
7171

72-
error[E0277]: the trait bound `ObjA: AsyncField<__S, 11301463986558097276003903130001171064>` is not satisfied
72+
error[E0277]: the trait bound `ObjA: juniper::macros::reflect::AsyncField<__S, 11301463986558097276003903130001171064>` is not satisfied
7373
--> fail/interface/struct/attr_missing_field.rs:11:5
7474
|
7575
11 | id: String,

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,3 @@ error: duplicated attribute argument found
33
|
44
10 | #[graphql(for = [ObjA, ObjA])]
55
| ^^^^
6-
7-
error[E0425]: cannot find type `CharacterValue` in this scope
8-
--> fail/interface/struct/derive_implementers_duplicate_pretty.rs:4:18
9-
|
10-
4 | #[graphql(impl = CharacterValue)]
11-
| ^^^^^^^^^^^^^^ not found in this scope

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ error[E0658]: use of unstable library feature `str_as_str`
2424
= note: see issue #130366 <https://github.com/rust-lang/rust/issues/130366> for more information
2525
= note: this error 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)
2626

27-
error[E0277]: the trait bound `ObjA: FieldMeta<DefaultScalarValue, 11301463986558097276003903130001171064>` is not satisfied
27+
error[E0277]: the trait bound `ObjA: juniper::macros::reflect::FieldMeta<DefaultScalarValue, 11301463986558097276003903130001171064>` is not satisfied
2828
--> fail/interface/struct/derive_missing_field.rs:10:17
2929
|
3030
10 | #[graphql(for = ObjA)]
@@ -55,7 +55,7 @@ error[E0080]: evaluation panicked: failed to implement interface `Character` on
5555
|
5656
= note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info)
5757

58-
error[E0277]: the trait bound `ObjA: reflect::Field<__S, 11301463986558097276003903130001171064>` is not satisfied
58+
error[E0277]: the trait bound `ObjA: juniper::macros::reflect::Field<__S, 11301463986558097276003903130001171064>` is not satisfied
5959
--> fail/interface/struct/derive_missing_field.rs:12:5
6060
|
6161
12 | id: String,
@@ -69,7 +69,7 @@ help: the trait `Field<__S, 11301463986558097276003903130001171064>` is not impl
6969
| ^^^^^^^^^^^^^
7070
= note: this error originates in the derive macro `GraphQLObject` (in Nightly builds, run with -Z macro-backtrace for more info)
7171

72-
error[E0277]: the trait bound `ObjA: AsyncField<__S, 11301463986558097276003903130001171064>` is not satisfied
72+
error[E0277]: the trait bound `ObjA: juniper::macros::reflect::AsyncField<__S, 11301463986558097276003903130001171064>` is not satisfied
7373
--> fail/interface/struct/derive_missing_field.rs:12:5
7474
|
7575
12 | id: String,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ help: the trait `IsInputType<__S>` is not implemented for `ObjA`
1515
`ArcStr` implements `IsInputType<__S>`
1616
`Box<T>` implements `IsInputType<S>`
1717
`ID` implements `IsInputType<__S>`
18+
`Nullable<T>` implements `IsInputType<S>`
1819
`Vec<T>` implements `IsInputType<S>`
1920
`[T; N]` implements `IsInputType<S>`
20-
`[T]` implements `IsInputType<S>`
2121
and $N others
2222

2323
error[E0277]: the trait bound `ObjA: FromInputValue<__S>` is not satisfied
@@ -39,10 +39,10 @@ help: the trait `FromInputValue<__S>` is not implemented for `ObjA`
3939
`ArcStr` implements `FromInputValue<__S>`
4040
`Box<T>` implements `FromInputValue<S>`
4141
`ID` implements `FromInputValue<__S>`
42+
`Nullable<T>` implements `FromInputValue<S>`
4243
`Vec<T>` implements `FromInputValue<S>`
4344
`[T; N]` implements `FromInputValue<S>`
4445
`bool` implements `FromInputValue<__S>`
45-
`compact_str::CompactString` implements `FromInputValue<__S>`
4646
and $N others
4747
note: required by a bound in `Registry::<S>::arg`
4848
--> $WORKSPACE/juniper/src/executor/mod.rs

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,3 @@ error: duplicated attribute argument found
33
|
44
9 | #[graphql_interface(for = [ObjA, ObjA])]
55
| ^^^^
6-
7-
error[E0425]: cannot find type `CharacterValue` in this scope
8-
--> fail/interface/trait/implementers_duplicate_pretty.rs:4:18
9-
|
10-
4 | #[graphql(impl = CharacterValue)]
11-
| ^^^^^^^^^^^^^^ not found in this scope

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ error[E0658]: use of unstable library feature `str_as_str`
2424
= note: see issue #130366 <https://github.com/rust-lang/rust/issues/130366> for more information
2525
= note: this error 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)
2626

27-
error[E0277]: the trait bound `ObjA: FieldMeta<DefaultScalarValue, 11301463986558097276003903130001171064>` is not satisfied
27+
error[E0277]: the trait bound `ObjA: juniper::macros::reflect::FieldMeta<DefaultScalarValue, 11301463986558097276003903130001171064>` is not satisfied
2828
--> fail/interface/trait/missing_field.rs:9:27
2929
|
3030
9 | #[graphql_interface(for = ObjA)]
@@ -55,7 +55,7 @@ error[E0080]: evaluation panicked: failed to implement interface `Character` on
5555
|
5656
= note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `::juniper::assert_field` (in Nightly builds, run with -Z macro-backtrace for more info)
5757

58-
error[E0277]: the trait bound `ObjA: reflect::Field<__S, 11301463986558097276003903130001171064>` is not satisfied
58+
error[E0277]: the trait bound `ObjA: juniper::macros::reflect::Field<__S, 11301463986558097276003903130001171064>` is not satisfied
5959
--> fail/interface/trait/missing_field.rs:11:8
6060
|
6161
11 | fn id(&self) -> &str;
@@ -69,7 +69,7 @@ help: the trait `Field<__S, 11301463986558097276003903130001171064>` is not impl
6969
| ^^^^^^^^^^^^^
7070
= note: this error originates in the derive macro `GraphQLObject` (in Nightly builds, run with -Z macro-backtrace for more info)
7171

72-
error[E0277]: the trait bound `ObjA: AsyncField<__S, 11301463986558097276003903130001171064>` is not satisfied
72+
error[E0277]: the trait bound `ObjA: juniper::macros::reflect::AsyncField<__S, 11301463986558097276003903130001171064>` is not satisfied
7373
--> fail/interface/trait/missing_field.rs:11:8
7474
|
7575
11 | fn id(&self) -> &str;

tests/codegen/fail/object/argument_non_input_type.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ help: the trait `IsInputType<__S>` is not implemented for `ObjA`
1515
`ArcStr` implements `IsInputType<__S>`
1616
`Box<T>` implements `IsInputType<S>`
1717
`ID` implements `IsInputType<__S>`
18+
`Nullable<T>` implements `IsInputType<S>`
1819
`Vec<T>` implements `IsInputType<S>`
1920
`[T; N]` implements `IsInputType<S>`
20-
`[T]` implements `IsInputType<S>`
2121
and $N others
2222

2323
error[E0277]: the trait bound `ObjA: FromInputValue<__S>` is not satisfied
@@ -39,10 +39,10 @@ help: the trait `FromInputValue<__S>` is not implemented for `ObjA`
3939
`ArcStr` implements `FromInputValue<__S>`
4040
`Box<T>` implements `FromInputValue<S>`
4141
`ID` implements `FromInputValue<__S>`
42+
`Nullable<T>` implements `FromInputValue<S>`
4243
`Vec<T>` implements `FromInputValue<S>`
4344
`[T; N]` implements `FromInputValue<S>`
4445
`bool` implements `FromInputValue<__S>`
45-
`compact_str::CompactString` implements `FromInputValue<__S>`
4646
and $N others
4747
note: required by a bound in `Registry::<S>::arg`
4848
--> $WORKSPACE/juniper/src/executor/mod.rs
@@ -69,10 +69,10 @@ help: the trait `FromInputValue<__S>` is not implemented for `ObjA`
6969
`ArcStr` implements `FromInputValue<__S>`
7070
`Box<T>` implements `FromInputValue<S>`
7171
`ID` implements `FromInputValue<__S>`
72+
`Nullable<T>` implements `FromInputValue<S>`
7273
`Vec<T>` implements `FromInputValue<S>`
7374
`[T; N]` implements `FromInputValue<S>`
7475
`bool` implements `FromInputValue<__S>`
75-
`compact_str::CompactString` implements `FromInputValue<__S>`
7676
and $N others
7777
= note: this error originates in the attribute macro `graphql_object` (in Nightly builds, run with -Z macro-backtrace for more info)
7878

@@ -92,10 +92,10 @@ help: the trait `FromInputValue<__S>` is not implemented for `ObjA`
9292
`ArcStr` implements `FromInputValue<__S>`
9393
`Box<T>` implements `FromInputValue<S>`
9494
`ID` implements `FromInputValue<__S>`
95+
`Nullable<T>` implements `FromInputValue<S>`
9596
`Vec<T>` implements `FromInputValue<S>`
9697
`[T; N]` implements `FromInputValue<S>`
9798
`bool` implements `FromInputValue<__S>`
98-
`compact_str::CompactString` implements `FromInputValue<__S>`
9999
and $N others
100100

101101
warning: unused variable: `obj`

0 commit comments

Comments
 (0)