Skip to content

Commit 0f3e2f6

Browse files
committed
Clarify docs for DUMMY_NODE_ID
1 parent 2af4a01 commit 0f3e2f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/rustc_ast/src/node_id.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ rustc_data_structures::define_id_collections!(NodeMap, NodeSet, NodeId);
1818
/// The [`NodeId`] used to represent the root of the crate.
1919
pub const CRATE_NODE_ID: NodeId = NodeId::from_u32(0);
2020

21-
/// When parsing and doing expansions, we initially give all AST nodes this AST
22-
/// [`NodeId`]. Then later, during expansion, we renumber them to have small,
23-
/// positive IDs.
21+
/// When parsing and at the beginning of doing expansions, we initially give all AST nodes
22+
/// this dummy AST [`NodeId`]. Then, during a later phase of expansion, we renumber them
23+
/// to have small, positive IDs.
2424
pub const DUMMY_NODE_ID: NodeId = NodeId::MAX;
2525

2626
impl NodeId {

0 commit comments

Comments
 (0)