Skip to content

Commit 828d059

Browse files
committed
Fix codegen tests for latest nightly
1 parent aaf28e9 commit 828d059

File tree

3 files changed

+72
-0
lines changed

3 files changed

+72
-0
lines changed

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

+24
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,27 @@ error[E0080]: evaluation of constant value failed
1313
| ^^ the evaluated program panicked at 'Failed to implement interface `Character` on `ObjA`: Field `id` isn't implemented on `ObjA`.', $DIR/fail/interface/struct/attr_missing_field.rs:11:5
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)
16+
17+
error[E0080]: evaluation of constant value failed
18+
--> fail/interface/struct/attr_missing_field.rs:11:5
19+
|
20+
11 | id: String,
21+
| ^^ the evaluated program panicked at 'Failed to implement interface `Character` on `ObjA`: Field `id` isn't implemented on `ObjA`.', $DIR/fail/interface/struct/attr_missing_field.rs:11:5
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[E0277]: the trait bound `ObjA: reflect::Field<__S, 11301463986558097276003903130001171064>` is not satisfied
26+
--> fail/interface/struct/attr_missing_field.rs:11:5
27+
|
28+
11 | id: String,
29+
| ^^ the trait `reflect::Field<__S, 11301463986558097276003903130001171064>` is not implemented for `ObjA`
30+
|
31+
= help: the trait `reflect::Field<__S, 140650918148392961738240285796466530725>` is implemented for `ObjA`
32+
33+
error[E0277]: the trait bound `ObjA: AsyncField<__S, 11301463986558097276003903130001171064>` is not satisfied
34+
--> fail/interface/struct/attr_missing_field.rs:11:5
35+
|
36+
11 | id: String,
37+
| ^^ the trait `AsyncField<__S, 11301463986558097276003903130001171064>` is not implemented for `ObjA`
38+
|
39+
= help: the trait `AsyncField<__S, 140650918148392961738240285796466530725>` is implemented for `ObjA`

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

+24
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,27 @@ error[E0080]: evaluation of constant value failed
1313
| ^^ the evaluated program panicked at 'Failed to implement interface `Character` on `ObjA`: Field `id` isn't implemented on `ObjA`.', $DIR/fail/interface/struct/derive_missing_field.rs:12:5
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)
16+
17+
error[E0080]: evaluation of constant value failed
18+
--> fail/interface/struct/derive_missing_field.rs:12:5
19+
|
20+
12 | id: String,
21+
| ^^ the evaluated program panicked at 'Failed to implement interface `Character` on `ObjA`: Field `id` isn't implemented on `ObjA`.', $DIR/fail/interface/struct/derive_missing_field.rs:12:5
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[E0277]: the trait bound `ObjA: reflect::Field<__S, 11301463986558097276003903130001171064>` is not satisfied
26+
--> fail/interface/struct/derive_missing_field.rs:12:5
27+
|
28+
12 | id: String,
29+
| ^^ the trait `reflect::Field<__S, 11301463986558097276003903130001171064>` is not implemented for `ObjA`
30+
|
31+
= help: the trait `reflect::Field<__S, 140650918148392961738240285796466530725>` is implemented for `ObjA`
32+
33+
error[E0277]: the trait bound `ObjA: AsyncField<__S, 11301463986558097276003903130001171064>` is not satisfied
34+
--> fail/interface/struct/derive_missing_field.rs:12:5
35+
|
36+
12 | id: String,
37+
| ^^ the trait `AsyncField<__S, 11301463986558097276003903130001171064>` is not implemented for `ObjA`
38+
|
39+
= help: the trait `AsyncField<__S, 140650918148392961738240285796466530725>` is implemented for `ObjA`

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

+24
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,27 @@ error[E0080]: evaluation of constant value failed
1313
| ^^ the evaluated program panicked at 'Failed to implement interface `Character` on `ObjA`: Field `id` isn't implemented on `ObjA`.', $DIR/fail/interface/trait/missing_field.rs:11:8
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)
16+
17+
error[E0080]: evaluation of constant value failed
18+
--> fail/interface/trait/missing_field.rs:11:8
19+
|
20+
11 | fn id(&self) -> &str;
21+
| ^^ the evaluated program panicked at 'Failed to implement interface `Character` on `ObjA`: Field `id` isn't implemented on `ObjA`.', $DIR/fail/interface/trait/missing_field.rs:11:8
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[E0277]: the trait bound `ObjA: reflect::Field<__S, 11301463986558097276003903130001171064>` is not satisfied
26+
--> fail/interface/trait/missing_field.rs:11:8
27+
|
28+
11 | fn id(&self) -> &str;
29+
| ^^ the trait `reflect::Field<__S, 11301463986558097276003903130001171064>` is not implemented for `ObjA`
30+
|
31+
= help: the trait `reflect::Field<__S, 140650918148392961738240285796466530725>` is implemented for `ObjA`
32+
33+
error[E0277]: the trait bound `ObjA: AsyncField<__S, 11301463986558097276003903130001171064>` is not satisfied
34+
--> fail/interface/trait/missing_field.rs:11:8
35+
|
36+
11 | fn id(&self) -> &str;
37+
| ^^ the trait `AsyncField<__S, 11301463986558097276003903130001171064>` is not implemented for `ObjA`
38+
|
39+
= help: the trait `AsyncField<__S, 140650918148392961738240285796466530725>` is implemented for `ObjA`

0 commit comments

Comments
 (0)