Skip to content

Commit 09b47c9

Browse files
committed
Use imported NodeId.
1 parent 2ae8413 commit 09b47c9

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
@@ -626,7 +626,7 @@ enum GenericArgsMode {
626626
impl<'hir> LoweringContext<'_, 'hir> {
627627
fn create_def(
628628
&mut self,
629-
node_id: ast::NodeId,
629+
node_id: NodeId,
630630
name: Option<Symbol>,
631631
def_kind: DefKind,
632632
span: Span,
@@ -656,7 +656,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
656656
fn next_node_id(&mut self) -> NodeId {
657657
let start = self.next_node_id;
658658
let next = start.as_u32().checked_add(1).expect("input too large; ran out of NodeIds");
659-
self.next_node_id = ast::NodeId::from_u32(next);
659+
self.next_node_id = NodeId::from_u32(next);
660660
start
661661
}
662662

0 commit comments

Comments
 (0)