Skip to content

Commit a69a28b

Browse files
committed
Update test snapshots
1 parent 8a7931f commit a69a28b

File tree

20 files changed

+20
-8
lines changed

20 files changed

+20
-8
lines changed

tests/derive-tests/as_variant/fail/struct.err.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ error: expected `enum`
33
|
44
4 | pub struct Struct {
55
| ^^^^^^
6+
error: could not compile `<CRATE>` (bin "<BIN>") due to 1 previous error

tests/derive-tests/as_variant/fail/union.err.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ error: expected `enum`
33
|
44
4 | pub union Union {
55
| ^^^^^
6+
error: could not compile `<CRATE>` (bin "<BIN>") due to 1 previous error

tests/derive-tests/as_variant_mut/fail/struct.err.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ error: expected `enum`
33
|
44
4 | pub struct Struct {
55
| ^^^^^^
6+
error: could not compile `<CRATE>` (bin "<BIN>") due to 1 previous error

tests/derive-tests/as_variant_mut/fail/union.err.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ error: expected `enum`
33
|
44
4 | pub union Union {
55
| ^^^^^
6+
error: could not compile `<CRATE>` (bin "<BIN>") due to 1 previous error

tests/derive-tests/as_variant_ref/fail/struct.err.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ error: expected `enum`
33
|
44
4 | pub struct Struct {
55
| ^^^^^^
6+
error: could not compile `<CRATE>` (bin "<BIN>") due to 1 previous error

tests/derive-tests/as_variant_ref/fail/union.err.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ error: expected `enum`
33
|
44
4 | pub union Union {
55
| ^^^^^
6+
error: could not compile `<CRATE>` (bin "<BIN>") due to 1 previous error

tests/derive-tests/encapsulate/pass/enum/tuple_variants/one_field.out.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,6 @@ impl ::core::clone::Clone for EnumDiscriminant {
144144
}
145145
}
146146
#[automatically_derived]
147-
impl ::core::marker::StructuralEq for EnumDiscriminant {}
148-
#[automatically_derived]
149147
impl ::core::cmp::Eq for EnumDiscriminant {
150148
#[inline]
151149
#[doc(hidden)]
@@ -173,6 +171,7 @@ impl ::core::hash::Hash for EnumDiscriminant {
173171
}
174172
#[automatically_derived]
175173
impl ::core::fmt::Debug for EnumDiscriminant {
174+
#[inline]
176175
fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
177176
::core::fmt::Formatter::write_str(
178177
f,

tests/derive-tests/encapsulate/pass/enum/zero_variants.out.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ impl ::core::clone::Clone for EnumDiscriminant {
1414
}
1515
}
1616
#[automatically_derived]
17-
impl ::core::marker::StructuralEq for EnumDiscriminant {}
18-
#[automatically_derived]
1917
impl ::core::cmp::Eq for EnumDiscriminant {
2018
#[inline]
2119
#[doc(hidden)]
@@ -40,6 +38,7 @@ impl ::core::hash::Hash for EnumDiscriminant {
4038
}
4139
#[automatically_derived]
4240
impl ::core::fmt::Debug for EnumDiscriminant {
41+
#[inline]
4342
fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
4443
match *self {}
4544
}

tests/derive-tests/from/fail/struct.err.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ error: expected `enum`
33
|
44
4 | pub struct Struct {
55
| ^^^^^^
6+
error: could not compile `<CRATE>` (bin "<BIN>") due to 1 previous error

tests/derive-tests/from/fail/union.err.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ error: expected `enum`
33
|
44
4 | pub union Union {
55
| ^^^^^
6+
error: could not compile `<CRATE>` (bin "<BIN>") due to 1 previous error

0 commit comments

Comments
 (0)