ast_lowering: rm separate def_id_parent

no longer necessary as we now always create a ` DefId`  for anon-consts
This commit is contained in:
lcnr
2024-11-25 18:43:34 +01:00
committed by Boxy
parent 94131bd0a8
commit 23ba2d1194
3 changed files with 61 additions and 95 deletions

View File

@@ -222,7 +222,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
};
// Wrap the expression in an AnonConst.
let parent_def_id = self.current_def_id_parent;
let parent_def_id = self.current_hir_id_owner.def_id;
let node_id = self.next_node_id();
self.create_def(
parent_def_id,