Do not modify the resolver outputs.

This commit is contained in:
Camille GILLOT
2021-07-18 20:09:20 +02:00
parent 603746a35e
commit b676edd641
4 changed files with 83 additions and 75 deletions

View File

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