diff --git a/compiler/rustc_ast_lowering/src/lib.rs b/compiler/rustc_ast_lowering/src/lib.rs index 906c44c8240a..7604b0973ff0 100644 --- a/compiler/rustc_ast_lowering/src/lib.rs +++ b/compiler/rustc_ast_lowering/src/lib.rs @@ -621,7 +621,7 @@ enum GenericArgsMode { impl<'hir> LoweringContext<'_, 'hir> { fn create_def( &mut self, - node_id: ast::NodeId, + node_id: NodeId, name: Option, def_kind: DefKind, span: Span, @@ -651,7 +651,7 @@ fn create_def( fn next_node_id(&mut self) -> NodeId { let start = self.next_node_id; let next = start.as_u32().checked_add(1).expect("input too large; ran out of NodeIds"); - self.next_node_id = ast::NodeId::from_u32(next); + self.next_node_id = NodeId::from_u32(next); start }