Look at proc-macro attributes when encountering unknown attribute#110342
Look at proc-macro attributes when encountering unknown attribute#110342estebank wants to merge 1 commit intorust-lang:masterfrom
Conversation
```
error: cannot find attribute `sede` in this scope
--> src/main.rs:18:7
|
18 | #[sede(untagged)]
| ^^^^
|
help: the derive macros `Serialize` and `Deserialize` accept the similarly named `serde` attribute
|
18 | #[serde(untagged)]
| ~~~~~
error: cannot find attribute `serde` in this scope
--> src/main.rs:12:7
|
12 | #[serde(untagged)]
| ^^^^^
|
= note: `serde` is in scope, but it is a crate, not an attribute
help: `serde` is an attribute that can be used by the derive macros `Serialize` and `Deserialize`, you might be missing a `derive` attribute
|
10 + #[derive(Serialize, Deserialize)]
11 | struct Foo {
|
```
Mitigate rust-lang#47608.
|
(rustbot has picked a reviewer for you, use r? to override) |
|
@petrochenkov let me know if this was the split you desired. I guess I could have removed the additional span tracking as well and forego the structured suggestion, but that seemed to significantly reduce the utility of landing the PR in the first place. |
No, Derive helper attributes should be added to suggestion candidates inside
Yeah, let's drop all that, I want to land the core change cleanly. @rustbot author |
|
☔ The latest upstream changes (presumably #110579) made this pull request unmergeable. Please resolve the merge conflicts. |
Mitigate #47608. Split off of #109278 as requested.