Skip to content

Commit 9044aba

Browse files
committed
Use imported NodeId.
1 parent 0705bba commit 9044aba

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • compiler/rustc_ast_lowering/src

compiler/rustc_ast_lowering/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ enum GenericArgsMode {
621621
impl<'hir> LoweringContext<'_, 'hir> {
622622
fn create_def(
623623
&mut self,
624-
node_id: ast::NodeId,
624+
node_id: NodeId,
625625
name: Option<Symbol>,
626626
def_kind: DefKind,
627627
span: Span,
@@ -651,7 +651,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
651651
fn next_node_id(&mut self) -> NodeId {
652652
let start = self.next_node_id;
653653
let next = start.as_u32().checked_add(1).expect("input too large; ran out of NodeIds");
654-
self.next_node_id = ast::NodeId::from_u32(next);
654+
self.next_node_id = NodeId::from_u32(next);
655655
start
656656
}
657657

0 commit comments

Comments
 (0)