Skip to content

Commit c8a1e66

Browse files
committed
Tune lints for 1.89 Rust
Additionally: - update codegen tests for 1.89 Rust
1 parent d1035c5 commit c8a1e66

24 files changed

+221
-82
lines changed
Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1-
error[E0080]: evaluation of constant value failed
1+
error[E0080]: evaluation panicked: Failed to implement interface `Character` on `ObjA`: Field `id`: Argument `isPresent` of type `Boolean!` isn't present on the interface and so has to be nullable.
22
--> fail/interface/struct/attr_additional_non_nullable_argument.rs:16:5
33
|
44
16 | id: String,
5-
| ^^ evaluation panicked: Failed to implement interface `Character` on `ObjA`: Field `id`: Argument `isPresent` of type `Boolean!` isn't present on the interface and so has to be nullable.
5+
| ^^ evaluation of `<CharacterValueEnum<ObjA> as juniper::macros::reflect::Field<__S, id>>::call::_` failed here
6+
|
7+
= 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)
8+
9+
error[E0080]: evaluation panicked: Failed to implement interface `Character` on `ObjA`: Field `id`: Argument `isPresent` of type `Boolean!` isn't present on the interface and so has to be nullable.
10+
--> fail/interface/struct/attr_additional_non_nullable_argument.rs:16:5
11+
|
12+
16 | id: String,
13+
| ^^ evaluation of `<CharacterValueEnum<ObjA> as juniper::macros::reflect::AsyncField<__S, id>>::call::_` failed here
614
|
715
= 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)
Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,32 @@
1-
error[E0080]: evaluation of constant value failed
1+
error[E0080]: evaluation panicked: Failed to implement interface `Character` on `ObjA`: Field `id` isn't implemented on `ObjA`.
22
--> fail/interface/struct/attr_missing_field.rs:11:5
33
|
44
11 | id: String,
5-
| ^^ evaluation panicked: Failed to implement interface `Character` on `ObjA`: Field `id` isn't implemented on `ObjA`.
5+
| ^^ evaluation of `<CharacterValueEnum<ObjA> as juniper::macros::reflect::Field<__S, id>>::call::_::IMPL_ARGS::{constant#0}` failed here
66
|
77
= 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)
88

9-
error[E0080]: evaluation of constant value failed
9+
error[E0080]: evaluation panicked: Failed to implement interface `Character` on `ObjA`: Field `id` isn't implemented on `ObjA`.
1010
--> fail/interface/struct/attr_missing_field.rs:11:5
1111
|
1212
11 | id: String,
13-
| ^^ evaluation panicked: Failed to implement interface `Character` on `ObjA`: Field `id` isn't implemented on `ObjA`.
13+
| ^^ evaluation of `<CharacterValueEnum<ObjA> as juniper::macros::reflect::Field<__S, id>>::call::_::IMPL_RETURN_TY::{constant#0}` failed here
1414
|
1515
= 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)
1616

17-
error[E0080]: evaluation of constant value failed
17+
error[E0080]: evaluation panicked: Failed to implement interface `Character` on `ObjA`: Field `id` isn't implemented on `ObjA`.
1818
--> fail/interface/struct/attr_missing_field.rs:11:5
1919
|
2020
11 | id: String,
21-
| ^^ evaluation panicked: Failed to implement interface `Character` on `ObjA`: Field `id` isn't implemented on `ObjA`.
21+
| ^^ evaluation of `<CharacterValueEnum<ObjA> as juniper::macros::reflect::AsyncField<__S, id>>::call::_::IMPL_ARGS::{constant#0}` failed here
22+
|
23+
= 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)
24+
25+
error[E0080]: evaluation panicked: Failed to implement interface `Character` on `ObjA`: Field `id` isn't implemented on `ObjA`.
26+
--> fail/interface/struct/attr_missing_field.rs:11:5
27+
|
28+
11 | id: String,
29+
| ^^ evaluation of `<CharacterValueEnum<ObjA> as juniper::macros::reflect::AsyncField<__S, id>>::call::_::IMPL_RETURN_TY::{constant#0}` failed here
2230
|
2331
= 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)
2432

@@ -31,6 +39,14 @@ error[E0277]: the trait bound `ObjA: reflect::Field<__S, 11301463986558097276003
3139
= help: the trait `Field<__S, 11301463986558097276003903130001171064>` is not implemented for `ObjA`
3240
but trait `Field<__S, 140650918148392961738240285796466530725>` is implemented for it
3341

42+
error[E0080]: evaluation panicked: Failed to implement interface `Character` on `ObjA`: Field `id` isn't implemented on `ObjA`.
43+
--> fail/interface/struct/attr_missing_field.rs:11:5
44+
|
45+
11 | id: String,
46+
| ^^ evaluation of `<CharacterValueEnum<ObjA> as juniper::macros::reflect::Field<__S, id>>::call::_::IMPL_RETURN_WRAPPED_VAL::{constant#0}` failed here
47+
|
48+
= 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)
49+
3450
error[E0277]: the trait bound `ObjA: AsyncField<__S, 11301463986558097276003903130001171064>` is not satisfied
3551
--> fail/interface/struct/attr_missing_field.rs:11:5
3652
|
@@ -39,3 +55,11 @@ error[E0277]: the trait bound `ObjA: AsyncField<__S, 113014639865580972760039031
3955
|
4056
= help: the trait `AsyncField<__S, 11301463986558097276003903130001171064>` is not implemented for `ObjA`
4157
but trait `AsyncField<__S, 140650918148392961738240285796466530725>` is implemented for it
58+
59+
error[E0080]: evaluation panicked: Failed to implement interface `Character` on `ObjA`: Field `id` isn't implemented on `ObjA`.
60+
--> fail/interface/struct/attr_missing_field.rs:11:5
61+
|
62+
11 | id: String,
63+
| ^^ evaluation of `<CharacterValueEnum<ObjA> as juniper::macros::reflect::AsyncField<__S, id>>::call::_::IMPL_RETURN_WRAPPED_VAL::{constant#0}` failed here
64+
|
65+
= 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)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
error[E0080]: evaluation of constant value failed
1+
error[E0080]: evaluation panicked: Failed to implement interface `Character` on `ObjA`: missing implementer reference in interface's `for` attribute.
22
--> fail/interface/struct/attr_missing_for_attr.rs:3:10
33
|
44
3 | #[derive(GraphQLObject)]
5-
| ^^^^^^^^^^^^^ evaluation panicked: Failed to implement interface `Character` on `ObjA`: missing implementer reference in interface's `for` attribute.
5+
| ^^^^^^^^^^^^^ evaluation of `<ObjA as juniper::GraphQLObject<__S>>::mark::_` failed here
66
|
77
= note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the derive macro `GraphQLObject` (in Nightly builds, run with -Z macro-backtrace for more info)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
error[E0080]: evaluation of constant value failed
1+
error[E0080]: evaluation panicked: Failed to implement interface `Character` on `ObjA`: missing interface reference in implementer's `impl` attribute.
22
--> fail/interface/struct/attr_missing_impl_attr.rs:8:1
33
|
44
8 | #[graphql_interface(for = ObjA)]
5-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation panicked: Failed to implement interface `Character` on `ObjA`: missing interface reference in implementer's `impl` attribute.
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `<CharacterValueEnum<ObjA> as juniper::marker::IsOutputType<__S>>::mark::_` failed here
66
|
77
= note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the attribute macro `graphql_interface` (in Nightly builds, run with -Z macro-backtrace for more info)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
error[E0080]: evaluation of constant value failed
1+
error[E0080]: evaluation panicked: Failed to implement interface `Node2` on `Node3`: missing `impl = ` for transitive interface `Node1` on `Node3`.
22
--> fail/interface/struct/attr_missing_transitive_impl.rs:8:46
33
|
44
8 | #[graphql_interface(impl = Node1Value, for = Node3Value)]
5-
| ^^^^^^^^^^ evaluation panicked: Failed to implement interface `Node2` on `Node3`: missing `impl = ` for transitive interface `Node1` on `Node3`.
5+
| ^^^^^^^^^^ evaluation of `<Node2ValueEnum<Node3ValueEnum> as juniper::marker::IsOutputType<__S>>::mark::_` failed here
66
|
77
= note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `::juniper::assert_transitive_impls` (in Nightly builds, run with -Z macro-backtrace for more info)
Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1-
error[E0080]: evaluation of constant value failed
1+
error[E0080]: evaluation panicked: Failed to implement interface `Character` on `ObjA`: Field `id`: implementor is expected to return a subtype of interface's return object: `[String!]!` is not a subtype of `String!`.
22
--> fail/interface/struct/attr_non_subtype_return.rs:11:5
33
|
44
11 | id: String,
5-
| ^^ evaluation panicked: Failed to implement interface `Character` on `ObjA`: Field `id`: implementor is expected to return a subtype of interface's return object: `[String!]!` is not a subtype of `String!`.
5+
| ^^ evaluation of `<CharacterValueEnum<ObjA> as juniper::macros::reflect::Field<__S, id>>::call::_` failed here
6+
|
7+
= 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)
8+
9+
error[E0080]: evaluation panicked: Failed to implement interface `Character` on `ObjA`: Field `id`: implementor is expected to return a subtype of interface's return object: `[String!]!` is not a subtype of `String!`.
10+
--> fail/interface/struct/attr_non_subtype_return.rs:11:5
11+
|
12+
11 | id: String,
13+
| ^^ evaluation of `<CharacterValueEnum<ObjA> as juniper::macros::reflect::AsyncField<__S, id>>::call::_` failed here
614
|
715
= 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)
Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1-
error[E0080]: evaluation of constant value failed
1+
error[E0080]: evaluation panicked: Failed to implement interface `Character` on `ObjA`: Field `id`: Argument `isPresent` of type `Boolean!` isn't present on the interface and so has to be nullable.
22
--> fail/interface/struct/derive_additional_non_nullable_argument.rs:17:5
33
|
44
17 | id: String,
5-
| ^^ evaluation panicked: Failed to implement interface `Character` on `ObjA`: Field `id`: Argument `isPresent` of type `Boolean!` isn't present on the interface and so has to be nullable.
5+
| ^^ evaluation of `<CharacterValueEnum<ObjA> as juniper::macros::reflect::Field<__S, id>>::call::_` failed here
6+
|
7+
= 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)
8+
9+
error[E0080]: evaluation panicked: Failed to implement interface `Character` on `ObjA`: Field `id`: Argument `isPresent` of type `Boolean!` isn't present on the interface and so has to be nullable.
10+
--> fail/interface/struct/derive_additional_non_nullable_argument.rs:17:5
11+
|
12+
17 | id: String,
13+
| ^^ evaluation of `<CharacterValueEnum<ObjA> as juniper::macros::reflect::AsyncField<__S, id>>::call::_` failed here
614
|
715
= 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)
Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,32 @@
1-
error[E0080]: evaluation of constant value failed
1+
error[E0080]: evaluation panicked: Failed to implement interface `Character` on `ObjA`: Field `id` isn't implemented on `ObjA`.
22
--> fail/interface/struct/derive_missing_field.rs:12:5
33
|
44
12 | id: String,
5-
| ^^ evaluation panicked: Failed to implement interface `Character` on `ObjA`: Field `id` isn't implemented on `ObjA`.
5+
| ^^ evaluation of `<CharacterValueEnum<ObjA> as juniper::macros::reflect::Field<__S, id>>::call::_::IMPL_ARGS::{constant#0}` failed here
66
|
77
= 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)
88

9-
error[E0080]: evaluation of constant value failed
9+
error[E0080]: evaluation panicked: Failed to implement interface `Character` on `ObjA`: Field `id` isn't implemented on `ObjA`.
1010
--> fail/interface/struct/derive_missing_field.rs:12:5
1111
|
1212
12 | id: String,
13-
| ^^ evaluation panicked: Failed to implement interface `Character` on `ObjA`: Field `id` isn't implemented on `ObjA`.
13+
| ^^ evaluation of `<CharacterValueEnum<ObjA> as juniper::macros::reflect::Field<__S, id>>::call::_::IMPL_RETURN_TY::{constant#0}` failed here
1414
|
1515
= 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)
1616

17-
error[E0080]: evaluation of constant value failed
17+
error[E0080]: evaluation panicked: Failed to implement interface `Character` on `ObjA`: Field `id` isn't implemented on `ObjA`.
1818
--> fail/interface/struct/derive_missing_field.rs:12:5
1919
|
2020
12 | id: String,
21-
| ^^ evaluation panicked: Failed to implement interface `Character` on `ObjA`: Field `id` isn't implemented on `ObjA`.
21+
| ^^ evaluation of `<CharacterValueEnum<ObjA> as juniper::macros::reflect::AsyncField<__S, id>>::call::_::IMPL_ARGS::{constant#0}` failed here
22+
|
23+
= 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)
24+
25+
error[E0080]: evaluation panicked: Failed to implement interface `Character` on `ObjA`: Field `id` isn't implemented on `ObjA`.
26+
--> fail/interface/struct/derive_missing_field.rs:12:5
27+
|
28+
12 | id: String,
29+
| ^^ evaluation of `<CharacterValueEnum<ObjA> as juniper::macros::reflect::AsyncField<__S, id>>::call::_::IMPL_RETURN_TY::{constant#0}` failed here
2230
|
2331
= 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)
2432

@@ -31,6 +39,14 @@ error[E0277]: the trait bound `ObjA: reflect::Field<__S, 11301463986558097276003
3139
= help: the trait `Field<__S, 11301463986558097276003903130001171064>` is not implemented for `ObjA`
3240
but trait `Field<__S, 140650918148392961738240285796466530725>` is implemented for it
3341

42+
error[E0080]: evaluation panicked: Failed to implement interface `Character` on `ObjA`: Field `id` isn't implemented on `ObjA`.
43+
--> fail/interface/struct/derive_missing_field.rs:12:5
44+
|
45+
12 | id: String,
46+
| ^^ evaluation of `<CharacterValueEnum<ObjA> as juniper::macros::reflect::Field<__S, id>>::call::_::IMPL_RETURN_WRAPPED_VAL::{constant#0}` failed here
47+
|
48+
= 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)
49+
3450
error[E0277]: the trait bound `ObjA: AsyncField<__S, 11301463986558097276003903130001171064>` is not satisfied
3551
--> fail/interface/struct/derive_missing_field.rs:12:5
3652
|
@@ -39,3 +55,11 @@ error[E0277]: the trait bound `ObjA: AsyncField<__S, 113014639865580972760039031
3955
|
4056
= help: the trait `AsyncField<__S, 11301463986558097276003903130001171064>` is not implemented for `ObjA`
4157
but trait `AsyncField<__S, 140650918148392961738240285796466530725>` is implemented for it
58+
59+
error[E0080]: evaluation panicked: Failed to implement interface `Character` on `ObjA`: Field `id` isn't implemented on `ObjA`.
60+
--> fail/interface/struct/derive_missing_field.rs:12:5
61+
|
62+
12 | id: String,
63+
| ^^ evaluation of `<CharacterValueEnum<ObjA> as juniper::macros::reflect::AsyncField<__S, id>>::call::_::IMPL_RETURN_WRAPPED_VAL::{constant#0}` failed here
64+
|
65+
= 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)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
error[E0080]: evaluation of constant value failed
1+
error[E0080]: evaluation panicked: Failed to implement interface `Character` on `ObjA`: missing implementer reference in interface's `for` attribute.
22
--> fail/interface/struct/derive_missing_for_attr.rs:3:10
33
|
44
3 | #[derive(GraphQLObject)]
5-
| ^^^^^^^^^^^^^ evaluation panicked: Failed to implement interface `Character` on `ObjA`: missing implementer reference in interface's `for` attribute.
5+
| ^^^^^^^^^^^^^ evaluation of `<ObjA as juniper::GraphQLObject<__S>>::mark::_` failed here
66
|
77
= note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the derive macro `GraphQLObject` (in Nightly builds, run with -Z macro-backtrace for more info)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
error[E0080]: evaluation of constant value failed
1+
error[E0080]: evaluation panicked: Failed to implement interface `Character` on `ObjA`: missing interface reference in implementer's `impl` attribute.
22
--> fail/interface/struct/derive_missing_impl_attr.rs:8:10
33
|
44
8 | #[derive(GraphQLInterface)]
5-
| ^^^^^^^^^^^^^^^^ evaluation panicked: Failed to implement interface `Character` on `ObjA`: missing interface reference in implementer's `impl` attribute.
5+
| ^^^^^^^^^^^^^^^^ evaluation of `<CharacterValueEnum<ObjA> as juniper::marker::IsOutputType<__S>>::mark::_` failed here
66
|
77
= note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the derive macro `GraphQLInterface` (in Nightly builds, run with -Z macro-backtrace for more info)

0 commit comments

Comments
 (0)