diff options
| author | Camelid <camelidcamel@gmail.com> | 2021-02-07 19:42:12 -0800 |
|---|---|---|
| committer | Camelid <camelidcamel@gmail.com> | 2021-02-07 19:42:12 -0800 |
| commit | 0f3e2f68d3dd3f59a306d9bb0e95ce0148b0c52b (patch) | |
| tree | e1379cd15741f7b7e1df8ba989fde2d632bbeeda | |
| parent | 2af4a014502832ff961d2efb6cc6d737f0c80ffb (diff) | |
| download | rust-0f3e2f68d3dd3f59a306d9bb0e95ce0148b0c52b.tar.gz rust-0f3e2f68d3dd3f59a306d9bb0e95ce0148b0c52b.zip | |
Clarify docs for `DUMMY_NODE_ID`
| -rw-r--r-- | compiler/rustc_ast/src/node_id.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_ast/src/node_id.rs b/compiler/rustc_ast/src/node_id.rs index 955183a5a7c..d20bace6088 100644 --- a/compiler/rustc_ast/src/node_id.rs +++ b/compiler/rustc_ast/src/node_id.rs @@ -18,9 +18,9 @@ rustc_data_structures::define_id_collections!(NodeMap, NodeSet, NodeId); /// The [`NodeId`] used to represent the root of the crate. pub const CRATE_NODE_ID: NodeId = NodeId::from_u32(0); -/// When parsing and doing expansions, we initially give all AST nodes this AST -/// [`NodeId`]. Then later, during expansion, we renumber them to have small, -/// positive IDs. +/// When parsing and at the beginning of doing expansions, we initially give all AST nodes +/// this dummy AST [`NodeId`]. Then, during a later phase of expansion, we renumber them +/// to have small, positive IDs. pub const DUMMY_NODE_ID: NodeId = NodeId::MAX; impl NodeId { |
