Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b2f9a3f

Browse files
committedMar 9, 2025
fix rebase
1 parent e7fc315 commit b2f9a3f

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed
 

‎compiler/rustc_resolve/src/diagnostics.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1041,6 +1041,7 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
10411041
false,
10421042
false,
10431043
None,
1044+
None,
10441045
) else {
10451046
continue;
10461047
};

‎tests/ui/macros/missing-derive-1.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ enum B { //~ HELP `serde` is an attribute that can be used by the derive macros
2020
enum C {
2121
A,
2222
#[sede(untagged)] //~ ERROR cannot find attribute `sede`
23-
B, //~^ HELP the derive macros `Serialize` and `Deserialize` accept the similarly named `serde` attribute
23+
B, //~^ HELP the derive macros `Deserialize` and `Serialize` accept the similarly named `serde` attribute
2424
}
2525

2626
#[derive(Serialize, Deserialize)]

‎tests/ui/macros/missing-derive-1.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ error: cannot find attribute `sede` in this scope
3838
LL | #[sede(untagged)]
3939
| ^^^^
4040
|
41-
help: the derive macros `Serialize` and `Deserialize` accept the similarly named `serde` attribute
41+
help: the derive macros `Deserialize` and `Serialize` accept the similarly named `serde` attribute
4242
|
4343
LL | #[serde(untagged)]
44-
| ~~~~~
44+
| +
4545

4646
error: aborting due to 3 previous errors
4747

‎tests/ui/macros/missing-derive-2.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ enum B { //~ HELP `serde` is an attribute that can be used by the derive macros
2020
enum C {
2121
A,
2222
#[sede(untagged)] //~ ERROR cannot find attribute `sede`
23-
B, //~^ HELP the derive macros `Serialize` and `Deserialize` accept the similarly named `serde` attribute
23+
B, //~^ HELP the derive macros `Deserialize` and `Serialize` accept the similarly named `serde` attribute
2424
}
2525

2626
fn main() {}

‎tests/ui/macros/missing-derive-2.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ error: cannot find attribute `sede` in this scope
44
LL | #[sede(untagged)]
55
| ^^^^
66
|
7-
help: the derive macros `Serialize` and `Deserialize` accept the similarly named `serde` attribute
7+
help: the derive macros `Deserialize` and `Serialize` accept the similarly named `serde` attribute
88
|
99
LL | #[serde(untagged)]
10-
| ~~~~~
10+
| +
1111

1212
error: cannot find attribute `serde` in this scope
1313
--> $DIR/missing-derive-2.rs:16:7

0 commit comments

Comments
 (0)
Failed to load comments.