summary refs log tree commit diff
path: root/compiler/rustc_ast_lowering/src/expr.rs
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2021-07-16 10:16:23 +0200
committerCamille GILLOT <gillot.camille@gmail.com>2021-09-20 08:31:16 +0200
commita1a35576eb708e0bc04a47313bfdf3ff8aec9bc9 (patch)
tree5dcd090b7138ca94a27ac96c032ad615e8056837 /compiler/rustc_ast_lowering/src/expr.rs
parentc1bac9229ab93d1582b3974095e55fa56581b93b (diff)
downloadrust-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.rs2
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.