-
-
Notifications
You must be signed in to change notification settings - Fork 788
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix wording in comments from PR 2558
- Loading branch information
Showing
15 changed files
with
108 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
test_suite/tests/ui/default-attribute/incorrect_type_enum_adjacently_tagged.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 15 additions & 15 deletions
30
test_suite/tests/ui/default-attribute/incorrect_type_enum_adjacently_tagged.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
error[E0308]: `match` arms have incompatible types | ||
--> tests/ui/default-attribute/incorrect_type_enum_adjacently_tagged.rs:9:33 | ||
| | ||
4 | #[derive(Deserialize)] | ||
| ----------- | ||
| | | ||
| this is found to be of type `i8` | ||
| `match` arms have incompatible types | ||
--> tests/ui/default-attribute/incorrect_type_enum_adjacently_tagged.rs:10:33 | ||
| | ||
5 | #[derive(Deserialize)] | ||
| ----------- | ||
| | | ||
| this is found to be of type `i8` | ||
| `match` arms have incompatible types | ||
... | ||
9 | Tuple(u8, #[serde(default = "main")] i8), | ||
| ^^^^^^ expected `i8`, found `()` | ||
10 | Tuple(u8, #[serde(default = "main")] i8), | ||
| ^^^^^^ expected `i8`, found `()` | ||
|
||
error[E0308]: `match` arms have incompatible types | ||
--> tests/ui/default-attribute/incorrect_type_enum_adjacently_tagged.rs:11:27 | ||
--> tests/ui/default-attribute/incorrect_type_enum_adjacently_tagged.rs:12:27 | ||
| | ||
4 | #[derive(Deserialize)] | ||
5 | #[derive(Deserialize)] | ||
| ----------- | ||
| | | ||
| this is found to be of type `u8` | ||
| `match` arms have incompatible types | ||
... | ||
11 | #[serde(default = "main")] | ||
12 | #[serde(default = "main")] | ||
| ^^^^^^ expected `u8`, found `()` | ||
|
||
error[E0308]: `match` arms have incompatible types | ||
--> tests/ui/default-attribute/incorrect_type_enum_adjacently_tagged.rs:14:27 | ||
--> tests/ui/default-attribute/incorrect_type_enum_adjacently_tagged.rs:15:27 | ||
| | ||
4 | #[derive(Deserialize)] | ||
5 | #[derive(Deserialize)] | ||
| ----------- | ||
| | | ||
| this is found to be of type `i8` | ||
| `match` arms have incompatible types | ||
... | ||
14 | #[serde(default = "main")] | ||
15 | #[serde(default = "main")] | ||
| ^^^^^^ expected `i8`, found `()` |
5 changes: 3 additions & 2 deletions
5
test_suite/tests/ui/default-attribute/incorrect_type_enum_externally_tagged.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 9 additions & 9 deletions
18
test_suite/tests/ui/default-attribute/incorrect_type_enum_externally_tagged.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
error[E0308]: `match` arms have incompatible types | ||
--> tests/ui/default-attribute/incorrect_type_enum_externally_tagged.rs:8:33 | ||
--> tests/ui/default-attribute/incorrect_type_enum_externally_tagged.rs:9:33 | ||
| | ||
4 | #[derive(Deserialize)] | ||
5 | #[derive(Deserialize)] | ||
| ----------- | ||
| | | ||
| this is found to be of type `i8` | ||
| `match` arms have incompatible types | ||
... | ||
8 | Tuple(u8, #[serde(default = "main")] i8), | ||
9 | Tuple(u8, #[serde(default = "main")] i8), | ||
| ^^^^^^ expected `i8`, found `()` | ||
|
||
error[E0308]: `match` arms have incompatible types | ||
--> tests/ui/default-attribute/incorrect_type_enum_externally_tagged.rs:10:27 | ||
--> tests/ui/default-attribute/incorrect_type_enum_externally_tagged.rs:11:27 | ||
| | ||
4 | #[derive(Deserialize)] | ||
5 | #[derive(Deserialize)] | ||
| ----------- | ||
| | | ||
| this is found to be of type `u8` | ||
| `match` arms have incompatible types | ||
... | ||
10 | #[serde(default = "main")] | ||
11 | #[serde(default = "main")] | ||
| ^^^^^^ expected `u8`, found `()` | ||
|
||
error[E0308]: `match` arms have incompatible types | ||
--> tests/ui/default-attribute/incorrect_type_enum_externally_tagged.rs:13:27 | ||
--> tests/ui/default-attribute/incorrect_type_enum_externally_tagged.rs:14:27 | ||
| | ||
4 | #[derive(Deserialize)] | ||
5 | #[derive(Deserialize)] | ||
| ----------- | ||
| | | ||
| this is found to be of type `i8` | ||
| `match` arms have incompatible types | ||
... | ||
13 | #[serde(default = "main")] | ||
14 | #[serde(default = "main")] | ||
| ^^^^^^ expected `i8`, found `()` |
7 changes: 4 additions & 3 deletions
7
test_suite/tests/ui/default-attribute/incorrect_type_enum_internally_tagged.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
test_suite/tests/ui/default-attribute/incorrect_type_enum_internally_tagged.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
error[E0308]: `match` arms have incompatible types | ||
--> tests/ui/default-attribute/incorrect_type_enum_internally_tagged.rs:11:27 | ||
--> tests/ui/default-attribute/incorrect_type_enum_internally_tagged.rs:12:27 | ||
| | ||
4 | #[derive(Deserialize)] | ||
5 | #[derive(Deserialize)] | ||
| ----------- | ||
| | | ||
| this is found to be of type `u8` | ||
| `match` arms have incompatible types | ||
... | ||
11 | #[serde(default = "main")] | ||
12 | #[serde(default = "main")] | ||
| ^^^^^^ expected `u8`, found `()` | ||
|
||
error[E0308]: `match` arms have incompatible types | ||
--> tests/ui/default-attribute/incorrect_type_enum_internally_tagged.rs:14:27 | ||
--> tests/ui/default-attribute/incorrect_type_enum_internally_tagged.rs:15:27 | ||
| | ||
4 | #[derive(Deserialize)] | ||
5 | #[derive(Deserialize)] | ||
| ----------- | ||
| | | ||
| this is found to be of type `i8` | ||
| `match` arms have incompatible types | ||
... | ||
14 | #[serde(default = "main")] | ||
15 | #[serde(default = "main")] | ||
| ^^^^^^ expected `i8`, found `()` |
5 changes: 3 additions & 2 deletions
5
test_suite/tests/ui/default-attribute/incorrect_type_enum_untagged.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 15 additions & 15 deletions
30
test_suite/tests/ui/default-attribute/incorrect_type_enum_untagged.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
error[E0308]: `match` arms have incompatible types | ||
--> tests/ui/default-attribute/incorrect_type_enum_untagged.rs:9:33 | ||
| | ||
4 | #[derive(Deserialize)] | ||
| ----------- | ||
| | | ||
| this is found to be of type `i8` | ||
| `match` arms have incompatible types | ||
--> tests/ui/default-attribute/incorrect_type_enum_untagged.rs:10:33 | ||
| | ||
5 | #[derive(Deserialize)] | ||
| ----------- | ||
| | | ||
| this is found to be of type `i8` | ||
| `match` arms have incompatible types | ||
... | ||
9 | Tuple(u8, #[serde(default = "main")] i8), | ||
| ^^^^^^ expected `i8`, found `()` | ||
10 | Tuple(u8, #[serde(default = "main")] i8), | ||
| ^^^^^^ expected `i8`, found `()` | ||
|
||
error[E0308]: `match` arms have incompatible types | ||
--> tests/ui/default-attribute/incorrect_type_enum_untagged.rs:11:27 | ||
--> tests/ui/default-attribute/incorrect_type_enum_untagged.rs:12:27 | ||
| | ||
4 | #[derive(Deserialize)] | ||
5 | #[derive(Deserialize)] | ||
| ----------- | ||
| | | ||
| this is found to be of type `u8` | ||
| `match` arms have incompatible types | ||
... | ||
11 | #[serde(default = "main")] | ||
12 | #[serde(default = "main")] | ||
| ^^^^^^ expected `u8`, found `()` | ||
|
||
error[E0308]: `match` arms have incompatible types | ||
--> tests/ui/default-attribute/incorrect_type_enum_untagged.rs:14:27 | ||
--> tests/ui/default-attribute/incorrect_type_enum_untagged.rs:15:27 | ||
| | ||
4 | #[derive(Deserialize)] | ||
5 | #[derive(Deserialize)] | ||
| ----------- | ||
| | | ||
| this is found to be of type `i8` | ||
| `match` arms have incompatible types | ||
... | ||
14 | #[serde(default = "main")] | ||
15 | #[serde(default = "main")] | ||
| ^^^^^^ expected `i8`, found `()` |
3 changes: 2 additions & 1 deletion
3
test_suite/tests/ui/default-attribute/incorrect_type_newtype.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 13 additions & 13 deletions
26
test_suite/tests/ui/default-attribute/incorrect_type_newtype.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
error[E0308]: mismatched types | ||
--> tests/ui/default-attribute/incorrect_type_newtype.rs:5:19 | ||
--> tests/ui/default-attribute/incorrect_type_newtype.rs:6:19 | ||
| | ||
5 | #[serde(default = "main")] | ||
6 | #[serde(default = "main")] | ||
| ^^^^^^ | ||
| | | ||
| expected `Newtype`, found `()` | ||
| expected due to this | ||
|
||
error[E0308]: `match` arms have incompatible types | ||
--> tests/ui/default-attribute/incorrect_type_newtype.rs:6:34 | ||
--> tests/ui/default-attribute/incorrect_type_newtype.rs:7:34 | ||
| | ||
4 | #[derive(Deserialize)] | ||
5 | #[derive(Deserialize)] | ||
| ----------- | ||
| | | ||
| this is found to be of type `u8` | ||
| `match` arms have incompatible types | ||
5 | #[serde(default = "main")] | ||
6 | struct Newtype(#[serde(default = "main")] u8); | ||
6 | #[serde(default = "main")] | ||
7 | struct Newtype(#[serde(default = "main")] u8); | ||
| ^^^^^^ expected `u8`, found `()` | ||
|
||
error[E0308]: mismatched types | ||
--> tests/ui/default-attribute/incorrect_type_newtype.rs:5:19 | ||
--> tests/ui/default-attribute/incorrect_type_newtype.rs:6:19 | ||
| | ||
5 | #[serde(default = "main")] | ||
6 | #[serde(default = "main")] | ||
| ^^^^^^ expected `Newtype`, found `()` | ||
6 | struct Newtype(#[serde(default = "main")] u8); | ||
7 | struct Newtype(#[serde(default = "main")] u8); | ||
| ------- expected due to this | ||
|
||
error[E0308]: mismatched types | ||
--> tests/ui/default-attribute/incorrect_type_newtype.rs:6:34 | ||
--> tests/ui/default-attribute/incorrect_type_newtype.rs:7:34 | ||
| | ||
4 | #[derive(Deserialize)] | ||
5 | #[derive(Deserialize)] | ||
| ----------- expected due to the type of this binding | ||
5 | #[serde(default = "main")] | ||
6 | struct Newtype(#[serde(default = "main")] u8); | ||
6 | #[serde(default = "main")] | ||
7 | struct Newtype(#[serde(default = "main")] u8); | ||
| ^^^^^^ expected `u8`, found `()` |
3 changes: 2 additions & 1 deletion
3
test_suite/tests/ui/default-attribute/incorrect_type_struct.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 17 additions & 17 deletions
34
test_suite/tests/ui/default-attribute/incorrect_type_struct.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,58 @@ | ||
error[E0308]: mismatched types | ||
--> tests/ui/default-attribute/incorrect_type_struct.rs:5:19 | ||
--> tests/ui/default-attribute/incorrect_type_struct.rs:6:19 | ||
| | ||
5 | #[serde(default = "main")] | ||
6 | #[serde(default = "main")] | ||
| ^^^^^^ | ||
| | | ||
| expected `Struct`, found `()` | ||
| expected due to this | ||
|
||
error[E0308]: `match` arms have incompatible types | ||
--> tests/ui/default-attribute/incorrect_type_struct.rs:7:23 | ||
--> tests/ui/default-attribute/incorrect_type_struct.rs:8:23 | ||
| | ||
4 | #[derive(Deserialize)] | ||
5 | #[derive(Deserialize)] | ||
| ----------- | ||
| | | ||
| this is found to be of type `u8` | ||
| `match` arms have incompatible types | ||
... | ||
7 | #[serde(default = "main")] | ||
8 | #[serde(default = "main")] | ||
| ^^^^^^ expected `u8`, found `()` | ||
|
||
error[E0308]: `match` arms have incompatible types | ||
--> tests/ui/default-attribute/incorrect_type_struct.rs:10:23 | ||
--> tests/ui/default-attribute/incorrect_type_struct.rs:11:23 | ||
| | ||
4 | #[derive(Deserialize)] | ||
5 | #[derive(Deserialize)] | ||
| ----------- | ||
| | | ||
| this is found to be of type `i8` | ||
| `match` arms have incompatible types | ||
... | ||
10 | #[serde(default = "main")] | ||
11 | #[serde(default = "main")] | ||
| ^^^^^^ expected `i8`, found `()` | ||
|
||
error[E0308]: mismatched types | ||
--> tests/ui/default-attribute/incorrect_type_struct.rs:5:19 | ||
--> tests/ui/default-attribute/incorrect_type_struct.rs:6:19 | ||
| | ||
5 | #[serde(default = "main")] | ||
6 | #[serde(default = "main")] | ||
| ^^^^^^ expected `Struct`, found `()` | ||
6 | struct Struct { | ||
7 | struct Struct { | ||
| ------ expected due to this | ||
|
||
error[E0308]: mismatched types | ||
--> tests/ui/default-attribute/incorrect_type_struct.rs:7:23 | ||
--> tests/ui/default-attribute/incorrect_type_struct.rs:8:23 | ||
| | ||
4 | #[derive(Deserialize)] | ||
5 | #[derive(Deserialize)] | ||
| ----------- expected due to the type of this binding | ||
... | ||
7 | #[serde(default = "main")] | ||
8 | #[serde(default = "main")] | ||
| ^^^^^^ expected `u8`, found `()` | ||
|
||
error[E0308]: mismatched types | ||
--> tests/ui/default-attribute/incorrect_type_struct.rs:10:23 | ||
--> tests/ui/default-attribute/incorrect_type_struct.rs:11:23 | ||
| | ||
4 | #[derive(Deserialize)] | ||
5 | #[derive(Deserialize)] | ||
| ----------- expected due to the type of this binding | ||
... | ||
10 | #[serde(default = "main")] | ||
11 | #[serde(default = "main")] | ||
| ^^^^^^ expected `i8`, found `()` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.