diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2021-07-16 10:16:23 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-09-20 08:31:16 +0200 |
| commit | a1a35576eb708e0bc04a47313bfdf3ff8aec9bc9 (patch) | |
| tree | 5dcd090b7138ca94a27ac96c032ad615e8056837 /compiler/rustc_ast_lowering/src/expr.rs | |
| parent | c1bac9229ab93d1582b3974095e55fa56581b93b (diff) | |
| download | rust-a1a35576eb708e0bc04a47313bfdf3ff8aec9bc9.tar.gz rust-a1a35576eb708e0bc04a47313bfdf3ff8aec9bc9.zip | |
Make with_hir_id_owner responsible for registering the item.
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 ddb00d17c0a..a6ea4aa8923 100644 --- a/compiler/rustc_ast_lowering/src/expr.rs +++ b/compiler/rustc_ast_lowering/src/expr.rs @@ -327,7 +327,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.0; + let parent_def_id = self.current_hir_id_owner; let node_id = self.resolver.next_node_id(); // Add a definition for the in-band const def. |
