bors
ba03dc70fd
Auto merge of #8219 - camsteffen:macro-decoupling, r=llogiq
...
New macro utils
changelog: none
Sorry, this is a big one. A lot of interrelated changes and I wanted to put the new utils to use to make sure they are somewhat battle-tested. We may want to divide some of the lint-specific refactoring commits into batches for smaller reviewing tasks. I could also split into more PRs.
Introduces a bunch of new utils at `clippy_utils::macros::...`. Please read through the docs and give any feedback! I'm happy to introduce `MacroCall` and various functions to retrieve an instance. It feels like the missing puzzle piece. I'm also introducing `ExpnId` from rustc as "useful for Clippy too". `@rust-lang/clippy`
Fixes #7843 by not parsing every node of macro implementations, at least the major offenders.
I probably want to get rid of `is_expn_of` at some point.
2022-01-04 22:32:02 +00:00
..
2021-12-13 14:02:41 +11:00
2021-12-17 13:40:22 +01:00
2021-12-17 20:48:38 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-25 00:29:29 +09:00
2021-12-25 00:29:24 +09:00
2021-12-06 12:33:31 +01:00
2021-12-17 13:40:22 +01:00
2021-12-13 00:00:51 +00:00
2021-12-13 00:00:51 +00:00
2022-01-04 22:32:02 +00:00
2022-01-04 22:32:02 +00:00
2021-12-06 12:33:31 +01:00
2021-12-17 13:40:22 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-17 13:40:22 +01:00
2021-12-17 13:40:22 +01:00
2021-12-17 13:40:22 +01:00
2021-12-13 00:00:51 +00:00
2021-12-13 00:00:51 +00:00
2021-12-25 21:55:20 +08:00
2021-12-25 21:55:20 +08:00
2022-01-04 22:32:02 +00:00
2022-01-02 19:36:02 +01:00
2022-01-02 19:36:02 +01:00
2021-12-29 09:05:04 -08:00
2021-12-29 09:05:04 -08:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-28 17:49:18 +01:00
2021-12-28 17:49:18 +01:00
2021-12-28 17:49:18 +01:00
2021-12-13 17:09:16 +00:00
2022-01-02 19:36:02 +01:00
2022-01-02 19:36:02 +01:00
2021-12-06 12:33:31 +01:00
2021-12-31 23:39:40 -05:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-26 21:37:57 +08:00
2021-12-26 21:37:57 +08:00
2021-12-26 21:37:57 +08:00
2021-12-26 21:37:57 +08:00
2021-12-26 21:37:57 +08:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2022-01-04 22:32:02 +00:00
2021-12-13 00:00:51 +00:00
2021-12-13 00:00:51 +00:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-17 13:40:22 +01:00
2021-12-17 13:40:22 +01:00
2021-12-17 13:40:22 +01:00
2021-12-17 13:40:22 +01:00
2021-12-17 13:40:22 +01:00
2021-12-06 12:33:31 +01:00
2021-12-28 11:15:53 +00:00
2021-12-28 11:15:53 +00:00
2021-12-28 11:15:53 +00:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-23 10:51:17 +01:00
2021-12-23 10:51:17 +01:00
2021-12-23 10:51:17 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-17 13:40:22 +01:00
2021-12-26 16:19:22 +01:00
2021-12-26 16:19:22 +01:00
2021-12-26 16:19:22 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-17 13:40:22 +01:00
2021-12-17 13:40:22 +01:00
2021-12-17 13:40:22 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2022-01-04 22:32:02 +00:00
2022-01-04 22:32:02 +00:00
2022-01-04 22:32:02 +00:00
2021-12-17 13:40:22 +01:00
2021-12-17 13:40:22 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-19 15:48:57 +01:00
2022-01-01 13:16:49 +00:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-24 13:20:40 -08:00
2021-12-24 13:20:40 -08:00
2021-12-18 00:07:36 +09:00
2021-12-18 00:07:36 +09:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2022-01-04 13:22:30 -05:00
2022-01-04 13:22:30 -05:00
2022-01-04 13:22:30 -05:00
2021-12-12 12:34:21 +00:00
2021-12-12 12:34:21 +00:00
2021-12-17 13:40:22 +01:00
2021-12-17 13:40:22 +01:00
2021-12-17 20:48:38 +01:00
2021-12-17 20:48:38 +01:00
2021-12-06 12:33:31 +01:00
2021-12-06 12:33:31 +01:00
2022-01-04 22:32:02 +00:00
2021-12-17 13:40:22 +01:00
2021-12-17 13:40:22 +01:00
2021-12-17 13:40:22 +01:00
2021-12-17 13:40:22 +01:00
2021-12-17 13:40:22 +01:00
2021-12-17 13:40:22 +01:00
2021-12-31 12:10:59 -05:00
2021-12-31 12:21:43 -05:00
2021-12-23 21:41:25 -08:00
2021-12-23 19:16:05 -08:00
2021-12-23 21:43:44 -08:00
2021-12-31 23:39:40 -05:00
2021-12-31 23:39:40 -05:00