diff options
| author | bors <bors@rust-lang.org> | 2021-05-01 18:03:25 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-05-01 18:03:25 +0000 |
| commit | 6e2a34474bb86911c5235476d2ea820e163629fe (patch) | |
| tree | caef57b361268262255d0d3dec39ee03179d604f /compiler/rustc_ast_lowering/src/expr.rs | |
| parent | 5f304a5d7908d9dd55dda3baadd3cf564d907369 (diff) | |
| parent | d794cb0d4fb795fc67e4e1e34c590d10e7189e76 (diff) | |
Auto merge of #83114 - cjgillot:hop, r=eddyb
Move HIR parenting information out of hir_owner Split out of #82681. The parent of a HIR node and its content are currently bundled together, but are rarely used together. This PR separates both information in two distinct queries for HIR owners. This reduces incremental invalidation for HIR items that appear within a function body when this body (and the local ids) changes.
Diffstat (limited to 'compiler/rustc_ast_lowering/src/expr.rs')
| -rw-r--r-- | compiler/rustc_ast_lowering/src/expr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ast_lowering/src/expr.rs b/compiler/rustc_ast_lowering/src/expr.rs index 75dfe951c94..bf70a41fd79 100644 --- a/compiler/rustc_ast_lowering/src/expr.rs +++ b/compiler/rustc_ast_lowering/src/expr.rs @@ -338,7 +338,7 @@ impl<'hir> LoweringContext<'_, 'hir> { let mut generic_args = vec![]; for (idx, arg) in args.into_iter().enumerate() { if legacy_args_idx.contains(&idx) { - let parent_def_id = self.current_hir_id_owner.last().unwrap().0; + let parent_def_id = self.current_hir_id_owner.0; let node_id = self.resolver.next_node_id(); // Add a definition for the in-band const def. |
