We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0705bba commit 9044abaCopy full SHA for 9044aba
1 file changed
compiler/rustc_ast_lowering/src/lib.rs
@@ -621,7 +621,7 @@ enum GenericArgsMode {
621
impl<'hir> LoweringContext<'_, 'hir> {
622
fn create_def(
623
&mut self,
624
- node_id: ast::NodeId,
+ node_id: NodeId,
625
name: Option<Symbol>,
626
def_kind: DefKind,
627
span: Span,
@@ -651,7 +651,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
651
fn next_node_id(&mut self) -> NodeId {
652
let start = self.next_node_id;
653
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);
+ self.next_node_id = NodeId::from_u32(next);
655
start
656
}
657
0 commit comments