Files
rust/tests/ui
Matthias Krüger 1e033a9818 Rollup merge of #99026 - anall:buffix/clippy-9131, r=xFrednet
Add test for and fix rust-lang/rust-clippy#9131

This lint seems to have been broken by #98446 -- but of course, there was no clippy test for this case at the time.

`expr.span.ctxt().outer_expn_data()` now has `MacroKind::Derive` instead of `MacroKind::Attr` for something like:

```
#[derive(Clone, Debug)]
pub struct UnderscoreInStruct {
    _foo: u32,
}
```

---

changelog: none

closes: https://github.com/rust-lang/rust-clippy/issues/9131
2022-07-08 08:00:41 +02:00
..
2022-07-07 09:27:42 +02:00
2021-12-13 00:00:51 +00:00
2021-12-13 00:00:51 +00:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2020-01-07 18:38:12 +09:00
2021-08-11 14:21:33 +00:00
2020-01-07 18:38:12 +09:00
2019-12-21 16:20:30 +01:00
2022-06-16 18:00:32 +04:00
2021-12-13 00:00:51 +00:00
2021-12-13 00:00:51 +00:00
2022-06-16 18:00:32 +04:00
2022-06-16 15:51:12 +03:00
2021-08-11 14:21:33 +00:00
2019-11-07 17:11:06 +01:00
2019-11-07 17:11:06 +01:00
2019-11-07 17:11:06 +01:00
2019-11-07 17:11:06 +01:00
2019-11-07 17:11:06 +01:00
2020-01-12 19:54:17 +08:00
2020-01-12 19:54:17 +08:00
2020-02-23 22:36:15 -08:00
2021-08-11 14:21:33 +00:00
2021-12-13 17:09:16 +00:00
2020-04-20 15:47:08 -04:00
2020-01-07 18:38:12 +09:00
2019-12-24 03:06:52 +07:00
2019-12-24 03:06:52 +07:00
2019-10-15 09:58:11 +02:00
2020-01-26 07:01:16 +09:00
2020-01-07 18:38:12 +09:00
2019-08-01 22:20:08 +09:00
2021-08-11 14:21:33 +00:00
2022-06-16 18:00:32 +04:00
2022-06-16 18:00:32 +04:00
2021-08-11 14:21:33 +00:00
2022-06-16 15:51:12 +03:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2022-06-16 15:51:12 +03:00
2020-01-07 18:38:12 +09:00
2021-08-11 14:21:33 +00:00
2020-04-26 18:00:51 +03:00
2020-01-07 18:38:12 +09:00
2019-12-31 09:22:35 -08:00
2021-08-11 14:21:33 +00:00
2021-06-04 08:05:54 -04:00
2021-12-13 00:00:51 +00:00
2021-12-13 00:00:51 +00:00
2021-08-11 14:21:33 +00:00
2022-06-16 15:51:12 +03:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2020-01-26 07:01:16 +09:00
2020-01-07 18:38:12 +09:00
2022-06-16 15:51:12 +03:00
2022-06-16 15:51:12 +03:00
2019-12-18 18:59:43 +02:00
2020-01-20 10:56:02 +09:00
2019-10-15 09:58:11 +02:00
2019-10-15 09:58:11 +02:00
2021-12-12 12:34:21 +00:00
2021-12-12 12:34:21 +00:00
2021-07-27 16:26:50 -04:00
2021-07-27 16:26:50 -04:00
2019-04-02 11:39:43 -03:00
2019-11-25 18:12:52 +03:00
2019-11-25 18:12:52 +03:00
2020-01-07 18:38:12 +09:00
2022-06-16 18:00:32 +04:00
2019-12-27 22:07:55 +09:00
2019-12-27 22:07:55 +09:00
2021-03-03 11:23:29 +01:00
2021-08-11 14:21:33 +00:00
2019-08-14 19:34:50 +02:00
2019-08-14 19:34:50 +02:00
2019-08-14 19:35:17 +02:00
2022-06-16 15:51:12 +03:00
2022-06-16 18:00:32 +04:00
2021-08-11 14:21:33 +00:00
2020-01-07 18:38:12 +09:00
2022-04-17 11:03:34 +02:00
2020-03-10 18:00:37 -04:00
2020-03-10 18:00:37 -04:00
2022-06-16 15:51:12 +03:00
2022-06-16 15:51:12 +03:00
2022-06-16 15:51:12 +03:00
2019-10-02 22:38:00 +07:00