granite-rust/compiler/rustc_hir/src
bors edba282770 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
..
arena.rs Remove deprecated LLVM-style inline assembly 2022-01-12 18:51:31 +01:00
def.rs Avoid accessing HIR from MIR queries. 2022-04-10 13:08:36 +02:00
def_path_hash_map.rs Use on-disk-hash-table format for DefPathHashMap in hir::definitions. 2021-09-14 13:54:41 +02:00
definitions.rs Use def_key in tcx.item_name when possible. 2022-04-09 10:54:43 +02:00
diagnostic_items.rs Introduce get_diagnostic_name 2021-10-06 08:40:28 -05:00
hir.rs Auto merge of #94468 - Amanieu:global_asm_sym, r=nagisa 2022-04-16 04:46:01 +00:00
hir_id.rs Remove NodeIdHashingMode. 2022-04-12 19:59:32 +02:00
intravisit.rs Reimplement lowering of sym operands for asm! so that it also works with global_asm! 2022-04-14 15:32:03 +01:00
itemlikevisit.rs fix mention of moved function in rustc_hir docs 2022-02-11 15:38:31 +00:00
lang_items.rs library: Move CStr to libcore, and CString to liballoc 2022-04-14 21:53:11 +03:00
lib.rs add #[rustc_pass_by_value] to more types 2022-03-08 15:39:52 +01:00
pat_util.rs Simplify for loop desugar 2021-11-21 08:15:21 -06:00
stable_hash_impls.rs Remove NodeIdHashingMode. 2022-04-12 19:59:32 +02:00
target.rs add comment about restriction of Target::from_def_kind 2022-04-09 16:03:16 -04:00
tests.rs Revert "Revert "Fix test"" 2021-07-06 11:28:06 +02:00
weak_lang_items.rs Clean up lang_items::extract 2022-01-09 13:41:04 -08:00