Skip to content

Commit 51a6d03

Browse files
committed
Bless the new .stderr output of compile fail tests
1 parent 8778220 commit 51a6d03

File tree

42 files changed

+952
-197
lines changed

Some content is hidden

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

42 files changed

+952
-197
lines changed

crates/bevy_derive/compile_fail/tests/deref_derive/invalid_attribute_fail.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error: unexpected token in attribute
2-
--> tests/deref_derive/invalid_attribute_fail.rs:8:12
2+
--> tests/deref_derive/invalid_attribute_fail.rs:LL:CC
33
|
44
8 | #[deref()] String
55
| ^
66

77
error: unexpected token in attribute
8-
--> tests/deref_derive/invalid_attribute_fail.rs:15:12
8+
--> tests/deref_derive/invalid_attribute_fail.rs:LL:CC
99
|
1010
15 | #[deref()]
1111
| ^

crates/bevy_derive/compile_fail/tests/deref_derive/invalid_item_fail.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
error: Deref cannot be derived on field-less structs
2-
--> tests/deref_derive/invalid_item_fail.rs:3:10
2+
--> tests/deref_derive/invalid_item_fail.rs:LL:CC
33
|
44
3 | #[derive(Deref)]
55
| ^^^^^
66
|
77
= note: this error originates in the derive macro `Deref` (in Nightly builds, run with -Z macro-backtrace for more info)
88

99
error: Deref can only be derived on structs
10-
--> tests/deref_derive/invalid_item_fail.rs:7:10
10+
--> tests/deref_derive/invalid_item_fail.rs:LL:CC
1111
|
1212
7 | #[derive(Deref)]
1313
| ^^^^^

crates/bevy_derive/compile_fail/tests/deref_derive/missing_attribute_fail.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
error: deriving Deref on multi-field structs requires one field to have the `#[deref]` attribute
2-
--> tests/deref_derive/missing_attribute_fail.rs:3:10
2+
--> tests/deref_derive/missing_attribute_fail.rs:LL:CC
33
|
44
3 | #[derive(Deref)]
55
| ^^^^^
66
|
77
= note: this error originates in the derive macro `Deref` (in Nightly builds, run with -Z macro-backtrace for more info)
88

99
error: deriving Deref on multi-field structs requires one field to have the `#[deref]` attribute
10-
--> tests/deref_derive/missing_attribute_fail.rs:7:10
10+
--> tests/deref_derive/missing_attribute_fail.rs:LL:CC
1111
|
1212
7 | #[derive(Deref)]
1313
| ^^^^^

crates/bevy_derive/compile_fail/tests/deref_derive/multiple_attributes_fail.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error: `#[deref]` attribute can only be used on a single field
2-
--> tests/deref_derive/multiple_attributes_fail.rs:6:5
2+
--> tests/deref_derive/multiple_attributes_fail.rs:LL:CC
33
|
44
6 | #[deref] String
55
| ^^^^^^^^
66

77
error: `#[deref]` attribute can only be used on a single field
8-
--> tests/deref_derive/multiple_attributes_fail.rs:14:5
8+
--> tests/deref_derive/multiple_attributes_fail.rs:LL:CC
99
|
1010
14 | #[deref]
1111
| ^^^^^^^^

crates/bevy_derive/compile_fail/tests/deref_mut_derive/invalid_attribute_fail.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error: unexpected token in attribute
2-
--> tests/deref_mut_derive/invalid_attribute_fail.rs:9:12
2+
--> tests/deref_mut_derive/invalid_attribute_fail.rs:LL:CC
33
|
44
9 | #[deref()] String
55
| ^
66

77
error: unexpected token in attribute
8-
--> tests/deref_mut_derive/invalid_attribute_fail.rs:24:12
8+
--> tests/deref_mut_derive/invalid_attribute_fail.rs:LL:CC
99
|
1010
24 | #[deref()]
1111
| ^

crates/bevy_derive/compile_fail/tests/deref_mut_derive/invalid_item_fail.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
error: DerefMut cannot be derived on field-less structs
2-
--> tests/deref_mut_derive/invalid_item_fail.rs:3:10
2+
--> tests/deref_mut_derive/invalid_item_fail.rs:LL:CC
33
|
44
3 | #[derive(DerefMut)]
55
| ^^^^^^^^
66
|
77
= note: this error originates in the derive macro `DerefMut` (in Nightly builds, run with -Z macro-backtrace for more info)
88

99
error: DerefMut can only be derived on structs
10-
--> tests/deref_mut_derive/invalid_item_fail.rs:7:10
10+
--> tests/deref_mut_derive/invalid_item_fail.rs:LL:CC
1111
|
1212
7 | #[derive(DerefMut)]
1313
| ^^^^^^^^

crates/bevy_derive/compile_fail/tests/deref_mut_derive/mismatched_target_type_fail.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0308]: mismatched types
2-
--> tests/deref_mut_derive/mismatched_target_type_fail.rs:4:10
2+
--> tests/deref_mut_derive/mismatched_target_type_fail.rs:LL:CC
33
|
44
4 | #[derive(DerefMut)]
55
| ^^^^^^^^
@@ -12,7 +12,7 @@ error[E0308]: mismatched types
1212
= note: this error originates in the derive macro `DerefMut` (in Nightly builds, run with -Z macro-backtrace for more info)
1313

1414
error[E0308]: mismatched types
15-
--> tests/deref_mut_derive/mismatched_target_type_fail.rs:16:10
15+
--> tests/deref_mut_derive/mismatched_target_type_fail.rs:LL:CC
1616
|
1717
16 | #[derive(DerefMut)]
1818
| ^^^^^^^^

crates/bevy_derive/compile_fail/tests/deref_mut_derive/missing_attribute_fail.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
error: deriving DerefMut on multi-field structs requires one field to have the `#[deref]` attribute
2-
--> tests/deref_mut_derive/missing_attribute_fail.rs:4:10
2+
--> tests/deref_mut_derive/missing_attribute_fail.rs:LL:CC
33
|
44
4 | #[derive(DerefMut)]
55
| ^^^^^^^^
66
|
77
= note: this error originates in the derive macro `DerefMut` (in Nightly builds, run with -Z macro-backtrace for more info)
88

99
error: deriving DerefMut on multi-field structs requires one field to have the `#[deref]` attribute
10-
--> tests/deref_mut_derive/missing_attribute_fail.rs:16:10
10+
--> tests/deref_mut_derive/missing_attribute_fail.rs:LL:CC
1111
|
1212
16 | #[derive(DerefMut)]
1313
| ^^^^^^^^

crates/bevy_derive/compile_fail/tests/deref_mut_derive/missing_deref_fail.stderr

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
11
error[E0277]: the trait bound `TupleStruct: Deref` is not satisfied
2-
--> tests/deref_mut_derive/missing_deref_fail.rs:10:8
2+
--> tests/deref_mut_derive/missing_deref_fail.rs:LL:CC
33
|
4-
10 | struct TupleStruct(usize, #[deref] String);
4+
9 | struct TupleStruct(usize, #[deref] String);
55
| ^^^^^^^^^^^ the trait `Deref` is not implemented for `TupleStruct`
66
|
77
note: required by a bound in `DerefMut`
8-
--> $RUSTUP_HOME/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/core/src/ops/deref.rs:264:21
8+
--> RUSTLIB/core/src/ops/deref.rs:LL:CC
99
|
10-
264 | pub trait DerefMut: Deref {
11-
| ^^^^^ required by this bound in `DerefMut`
10+
290 | pub trait DerefMut: ~const Deref {
11+
| ^^^^^^^^^^^^ required by this bound in `DerefMut`
1212

1313
error[E0277]: the trait bound `TupleStruct: Deref` is not satisfied
14-
--> tests/deref_mut_derive/missing_deref_fail.rs:7:10
14+
--> tests/deref_mut_derive/missing_deref_fail.rs:LL:CC
1515
|
1616
7 | #[derive(DerefMut)]
1717
| ^^^^^^^^ the trait `Deref` is not implemented for `TupleStruct`
1818
|
1919
= note: this error originates in the derive macro `DerefMut` (in Nightly builds, run with -Z macro-backtrace for more info)
2020

2121
error[E0277]: the trait bound `Struct: Deref` is not satisfied
22-
--> tests/deref_mut_derive/missing_deref_fail.rs:15:8
22+
--> tests/deref_mut_derive/missing_deref_fail.rs:LL:CC
2323
|
24-
15 | struct Struct {
24+
14 | struct Struct {
2525
| ^^^^^^ the trait `Deref` is not implemented for `Struct`
2626
|
2727
note: required by a bound in `DerefMut`
28-
--> $RUSTUP_HOME/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/core/src/ops/deref.rs:264:21
28+
--> RUSTLIB/core/src/ops/deref.rs:LL:CC
2929
|
30-
264 | pub trait DerefMut: Deref {
31-
| ^^^^^ required by this bound in `DerefMut`
30+
290 | pub trait DerefMut: ~const Deref {
31+
| ^^^^^^^^^^^^ required by this bound in `DerefMut`
3232

3333
error[E0277]: the trait bound `Struct: Deref` is not satisfied
34-
--> tests/deref_mut_derive/missing_deref_fail.rs:13:10
34+
--> tests/deref_mut_derive/missing_deref_fail.rs:LL:CC
3535
|
36-
13 | #[derive(DerefMut)]
36+
12 | #[derive(DerefMut)]
3737
| ^^^^^^^^ the trait `Deref` is not implemented for `Struct`
3838
|
3939
= note: this error originates in the derive macro `DerefMut` (in Nightly builds, run with -Z macro-backtrace for more info)

crates/bevy_derive/compile_fail/tests/deref_mut_derive/multiple_attributes_fail.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error: `#[deref]` attribute can only be used on a single field
2-
--> tests/deref_mut_derive/multiple_attributes_fail.rs:7:5
2+
--> tests/deref_mut_derive/multiple_attributes_fail.rs:LL:CC
33
|
44
7 | #[deref] String
55
| ^^^^^^^^
66

77
error: `#[deref]` attribute can only be used on a single field
8-
--> tests/deref_mut_derive/multiple_attributes_fail.rs:23:5
8+
--> tests/deref_mut_derive/multiple_attributes_fail.rs:LL:CC
99
|
1010
23 | #[deref]
1111
| ^^^^^^^^

0 commit comments

Comments
 (0)