bors cc25cbd243 Auto merge of #95655 - kckeiks:create-hir-crate-items-query, r=cjgillot
Refactor HIR item-like traversal (part 1)

Issue  #95004

- Create hir_crate_items query which traverses tcx.hir_crate(()).owners to return a hir::ModuleItems
- use tcx.hir_crate_items in tcx.hir().items() to return an iterator of hir::ItemId
- use tcx.hir_crate_items to introduce a tcx.hir().par_items(impl Fn(hir::ItemId)) to traverse all items in parallel;

Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>

cc `@cjgillot`
2022-04-17 08:06:53 +00: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
2021-08-11 14:21:33 +00:00
2020-01-07 18:38:12 +09:00
2019-12-21 16:20:30 +01:00
2021-08-11 14:21:33 +00: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-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
2020-01-26 07:01:16 +09:00
2020-01-07 18:38:12 +09:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2020-01-14 08:32:33 +09:00
2022-02-24 22:55:40 +03:00
2022-02-24 22:55:40 +03:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +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-04-26 18:00:51 +03:00
2021-08-11 14:21:33 +00: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
2022-03-02 19:20:27 -05:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00: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
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2019-12-18 18:59:43 +02:00
2020-03-20 22:52:53 +00:00
2020-01-20 10:56:02 +09: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
2020-01-07 18:38:12 +09:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00: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
2021-08-11 14:21:33 +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
2020-03-10 18:00:37 -04:00
2020-03-10 18:00:37 -04:00