diff options
| author | bors <bors@rust-lang.org> | 2025-06-13 22:59:24 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-06-13 22:59:24 +0000 |
| commit | d087f112b7d1323446c7b39a8b616aee7fa56b3d (patch) | |
| tree | 46efd55b1bbdb0cf1d61d16d0e47fb5baddb2b9e /tests/ui/impl-trait/extra-impl-in-trait-impl.fixed | |
| parent | 8da623945f83933dd38644d5745532ee032e855b (diff) | |
| parent | 92a798dac0e2e13380d053b532ef36f1eddf9acf (diff) | |
| download | rust-d087f112b7d1323446c7b39a8b616aee7fa56b3d.tar.gz rust-d087f112b7d1323446c7b39a8b616aee7fa56b3d.zip | |
Auto merge of #134841 - estebank:serde-attr-4, r=wesleywiser
Look at proc-macro attributes when encountering unknown attribute
```
error: cannot find attribute `sede` in this scope
--> $DIR/missing-derive-2.rs:22:7
|
LL | #[sede(untagged)]
| ^^^^
|
help: the derive macros `Deserialize` and `Serialize` accept the similarly named `serde` attribute
|
LL | #[serde(untagged)]
| +
error: cannot find attribute `serde` in this scope
--> $DIR/missing-derive-2.rs:16:7
|
LL | #[serde(untagged)]
| ^^^^^
|
note: `serde` is imported here, but it is a crate, not an attribute
--> $DIR/missing-derive-2.rs:5:1
|
LL | extern crate serde;
| ^^^^^^^^^^^^^^^^^^^
help: `serde` is an attribute that can be used by the derive macros `Serialize` and `Deserialize`, you might be missing a `derive` attribute
|
LL + #[derive(Serialize, Deserialize)]
LL | enum B {
|
```
Partially address #47608. This PR doesn't find [macros that haven't yet been imported by name](https://github.com/rust-lang/rust/pull/109278/commits/af945cb86e03b44a4b6dc4d54ec1424b00a2349e).
Diffstat (limited to 'tests/ui/impl-trait/extra-impl-in-trait-impl.fixed')
0 files changed, 0 insertions, 0 deletions
