rust/compiler/rustc_passes/src
bors 7849e3e9dd Auto merge of #88435 - cjgillot:no-walk-crate, r=Aaron1011
Avoid invoking the hir_crate query to traverse the HIR

Walking the HIR tree is done using the `hir_crate` query. However, this is unnecessary, since `hir_owner(CRATE_DEF_ID)` provides the same information. Since depending on `hir_crate` forces dependents to always be executed, this leads to unnecessary work.

By splitting HIR and attributes visits, we can avoid an edge to `hir_crate` when trying to visit the HIR tree.
2021-09-05 21:40:34 +00:00
..
liveness Use iter::zip in compiler/ 2021-03-26 09:32:31 -07:00
check_attr.rs emit specific warning to clarify that foreign items can't have no_mangle 2021-08-29 20:22:19 -04:00
check_const.rs Introduce hir::ExprKind::Let - Take 2 2021-08-15 16:18:26 -03:00
dead.rs Rename walk_crate. 2021-09-02 19:23:11 +02:00
diagnostic_items.rs Treat macros as HIR items 2021-08-28 00:16:34 -07:00
entry.rs Auto merge of #87449 - matthiaskrgr:clippyy_v2, r=nagisa 2021-08-01 09:15:15 +00:00
hir_id_validator.rs Drop walk_crate_and_attributes. 2021-09-02 19:08:59 +02:00
hir_stats.rs Rename walk_crate. 2021-09-02 19:23:11 +02:00
intrinsicck.rs Forbid ! from being used in asm! output 2021-08-12 20:28:35 +01:00
lang_items.rs Auto merge of #87875 - asquared31415:generic-lang-items, r=cjgillot 2021-08-25 08:12:16 +00:00
layout_test.rs ty::layout: split LayoutOf into required and (blanket) provided halves. 2021-09-02 01:17:14 +03:00
lib.rs Remove Session.used_attrs and move logic to CheckAttrVisitor 2021-08-21 13:27:27 -05:00
lib_features.rs Stop using walk_crate. 2021-09-02 19:08:58 +02:00
liveness.rs Auto merge of #84333 - tmiasko:liveness-yield, r=tmandry 2021-08-25 05:31:26 +00:00
loops.rs Do not suggest using a break label when one is already present 2021-01-21 21:43:29 -08:00
naked_functions.rs Introduce hir::ExprKind::Let - Take 2 2021-08-15 16:18:26 -03:00
reachable.rs Remove obsolete MacroDef variant of OwnerNode 2021-08-28 00:24:30 -07:00
region.rs Fix drop handling for if let expressions 2021-09-01 23:47:41 +01:00
stability.rs Rename walk_crate. 2021-09-02 19:23:11 +02:00
upvars.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
weak_lang_items.rs Remove Session.used_attrs and move logic to CheckAttrVisitor 2021-08-21 13:27:27 -05:00