Skip to content

Commit 84a07c4

Browse files
authored
Re-record fixtures for latest nightly error messages (#941)
1 parent 777b0d4 commit 84a07c4

File tree

51 files changed

+841
-25
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+841
-25
lines changed

integration_tests/codegen_fail/fail/enum/derive_no_fields.stderr

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
warning: field is never read: `enum_path`
2+
--> $DIR/mod.rs:282:5
3+
|
4+
282 | pub enum_path: Option<TokenStream>,
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(dead_code)]` on by default
8+
9+
warning: field is never read: `span`
10+
--> $DIR/mod.rs:296:5
11+
|
12+
296 | pub span: Span,
13+
| ^^^^^^^^^^^^^^
14+
15+
warning: 2 warnings emitted
16+
117
error: GraphQL enum expects at least one field
218
--> $DIR/derive_no_fields.rs:2:1
319
|

integration_tests/codegen_fail/fail/input-object/derive_incompatible_object.stderr

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,35 @@
1+
warning: field is never read: `enum_path`
2+
--> $DIR/mod.rs:282:5
3+
|
4+
282 | pub enum_path: Option<TokenStream>,
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(dead_code)]` on by default
8+
9+
warning: field is never read: `span`
10+
--> $DIR/mod.rs:296:5
11+
|
12+
296 | pub span: Span,
13+
| ^^^^^^^^^^^^^^
14+
15+
warning: 2 warnings emitted
16+
117
error[E0277]: the trait bound `ObjectA: IsInputType<__S>` is not satisfied
218
--> $DIR/derive_incompatible_object.rs:6:10
319
|
420
6 | #[derive(juniper::GraphQLInputObject)]
521
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `IsInputType<__S>` is not implemented for `ObjectA`
622
|
723
= note: required by `juniper::marker::IsInputType::mark`
8-
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
24+
= note: this error originates in the derive macro `juniper::GraphQLInputObject` (in Nightly builds, run with -Z macro-backtrace for more info)
925

1026
error[E0277]: the trait bound `ObjectA: FromInputValue<__S>` is not satisfied
1127
--> $DIR/derive_incompatible_object.rs:6:10
1228
|
1329
6 | #[derive(juniper::GraphQLInputObject)]
1430
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `FromInputValue<__S>` is not implemented for `ObjectA`
1531
|
16-
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
32+
= note: this error originates in the derive macro `juniper::GraphQLInputObject` (in Nightly builds, run with -Z macro-backtrace for more info)
1733

1834
error[E0277]: the trait bound `ObjectA: FromInputValue<__S>` is not satisfied
1935
--> $DIR/derive_incompatible_object.rs:6:10
@@ -22,7 +38,7 @@ error[E0277]: the trait bound `ObjectA: FromInputValue<__S>` is not satisfied
2238
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `FromInputValue<__S>` is not implemented for `ObjectA`
2339
|
2440
= note: required by `from_input_value`
25-
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
41+
= note: this error originates in the derive macro `juniper::GraphQLInputObject` (in Nightly builds, run with -Z macro-backtrace for more info)
2642

2743
error[E0599]: no method named `to_input_value` found for struct `ObjectA` in the current scope
2844
--> $DIR/derive_incompatible_object.rs:6:10
@@ -36,4 +52,4 @@ error[E0599]: no method named `to_input_value` found for struct `ObjectA` in the
3652
= help: items from traits can only be used if the trait is implemented and in scope
3753
= note: the following trait defines an item `to_input_value`, perhaps you need to implement it:
3854
candidate #1: `ToInputValue`
39-
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
55+
= note: this error originates in the derive macro `juniper::GraphQLInputObject` (in Nightly builds, run with -Z macro-backtrace for more info)

integration_tests/codegen_fail/fail/input-object/derive_no_fields.stderr

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
warning: field is never read: `enum_path`
2+
--> $DIR/mod.rs:282:5
3+
|
4+
282 | pub enum_path: Option<TokenStream>,
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(dead_code)]` on by default
8+
9+
warning: field is never read: `span`
10+
--> $DIR/mod.rs:296:5
11+
|
12+
296 | pub span: Span,
13+
| ^^^^^^^^^^^^^^
14+
15+
warning: 2 warnings emitted
16+
117
error: GraphQL input object expects at least one field
218
--> $DIR/derive_no_fields.rs:2:1
319
|

integration_tests/codegen_fail/fail/input-object/derive_no_underscore.stderr

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
warning: field is never read: `enum_path`
2+
--> $DIR/mod.rs:282:5
3+
|
4+
282 | pub enum_path: Option<TokenStream>,
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(dead_code)]` on by default
8+
9+
warning: field is never read: `span`
10+
--> $DIR/mod.rs:296:5
11+
|
12+
296 | pub span: Span,
13+
| ^^^^^^^^^^^^^^
14+
15+
warning: 2 warnings emitted
16+
117
error: All types and directives defined within a schema must not have a name which begins with `__` (two underscores), as this is used exclusively by GraphQL’s introspection system.
218
--> $DIR/derive_no_underscore.rs:3:15
319
|

integration_tests/codegen_fail/fail/input-object/derive_unique_name.stderr

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
warning: field is never read: `enum_path`
2+
--> $DIR/mod.rs:282:5
3+
|
4+
282 | pub enum_path: Option<TokenStream>,
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(dead_code)]` on by default
8+
9+
warning: field is never read: `span`
10+
--> $DIR/mod.rs:296:5
11+
|
12+
296 | pub span: Span,
13+
| ^^^^^^^^^^^^^^
14+
15+
warning: 2 warnings emitted
16+
117
error: GraphQL input object does not allow fields with the same name
218
--> $DIR/derive_unique_name.rs:4:5
319
|

integration_tests/codegen_fail/fail/interface/argument_double_underscored.stderr

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
warning: field is never read: `enum_path`
2+
--> $DIR/mod.rs:282:5
3+
|
4+
282 | pub enum_path: Option<TokenStream>,
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(dead_code)]` on by default
8+
9+
warning: field is never read: `span`
10+
--> $DIR/mod.rs:296:5
11+
|
12+
296 | pub span: Span,
13+
| ^^^^^^^^^^^^^^
14+
15+
warning: 2 warnings emitted
16+
117
error: All types and directives defined within a schema must not have a name which begins with `__` (two underscores), as this is used exclusively by GraphQL’s introspection system.
218
--> $DIR/argument_double_underscored.rs:14:18
319
|
Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,32 @@
1+
warning: field is never read: `enum_path`
2+
--> $DIR/mod.rs:282:5
3+
|
4+
282 | pub enum_path: Option<TokenStream>,
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(dead_code)]` on by default
8+
9+
warning: field is never read: `span`
10+
--> $DIR/mod.rs:296:5
11+
|
12+
296 | pub span: Span,
13+
| ^^^^^^^^^^^^^^
14+
15+
warning: 2 warnings emitted
16+
117
error[E0277]: the trait bound `ObjA: IsInputType<__S>` is not satisfied
218
--> $DIR/argument_non_input_type.rs:16:1
319
|
420
16 | #[graphql_interface(for = ObjA)]
521
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `IsInputType<__S>` is not implemented for `ObjA`
622
|
723
= note: required by `juniper::marker::IsInputType::mark`
8-
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
24+
= note: this error originates in the attribute macro `graphql_interface` (in Nightly builds, run with -Z macro-backtrace for more info)
925

1026
error[E0277]: the trait bound `ObjA: FromInputValue<__S>` is not satisfied
1127
--> $DIR/argument_non_input_type.rs:16:1
1228
|
1329
16 | #[graphql_interface(for = ObjA)]
1430
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `FromInputValue<__S>` is not implemented for `ObjA`
1531
|
16-
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
32+
= note: this error originates in the attribute macro `graphql_interface` (in Nightly builds, run with -Z macro-backtrace for more info)

integration_tests/codegen_fail/fail/interface/downcast_method_conflicts_with_external_downcast_fn.stderr

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
warning: field is never read: `enum_path`
2+
--> $DIR/mod.rs:282:5
3+
|
4+
282 | pub enum_path: Option<TokenStream>,
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(dead_code)]` on by default
8+
9+
warning: field is never read: `span`
10+
--> $DIR/mod.rs:296:5
11+
|
12+
296 | pub span: Span,
13+
| ^^^^^^^^^^^^^^
14+
15+
warning: 2 warnings emitted
16+
117
error: GraphQL interface trait method `as_obja` conflicts with the external downcast function `downcast_obja` declared on the trait to downcast into the implementer type `ObjA`
218
--> $DIR/downcast_method_conflicts_with_external_downcast_fn.rs:26:5
319
|

integration_tests/codegen_fail/fail/interface/downcast_method_wrong_input_args.stderr

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
warning: field is never read: `enum_path`
2+
--> $DIR/mod.rs:282:5
3+
|
4+
282 | pub enum_path: Option<TokenStream>,
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(dead_code)]` on by default
8+
9+
warning: field is never read: `span`
10+
--> $DIR/mod.rs:296:5
11+
|
12+
296 | pub span: Span,
13+
| ^^^^^^^^^^^^^^
14+
15+
warning: 2 warnings emitted
16+
117
error: GraphQL interface expects trait method to accept `&self` only and, optionally, `&Context`
218
--> $DIR/downcast_method_wrong_input_args.rs:10:10
319
|

integration_tests/codegen_fail/fail/interface/downcast_method_wrong_return_type.stderr

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
warning: field is never read: `enum_path`
2+
--> $DIR/mod.rs:282:5
3+
|
4+
282 | pub enum_path: Option<TokenStream>,
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(dead_code)]` on by default
8+
9+
warning: field is never read: `span`
10+
--> $DIR/mod.rs:296:5
11+
|
12+
296 | pub span: Span,
13+
| ^^^^^^^^^^^^^^
14+
15+
warning: 2 warnings emitted
16+
117
error: GraphQL interface expects trait method return type to be `Option<&ImplementerType>` only
218
--> $DIR/downcast_method_wrong_return_type.rs:10:40
319
|

0 commit comments

Comments
 (0)