Point to `HirId` instead of `NodeId`

This commit is contained in:
Camelid 2021-01-09 17:10:18 -08:00 committed by Joshua Nelson
parent ba9259eaaf
commit d87e197f26
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ The HIR uses a bunch of different identifiers that coexist and serve different p
- A [`DefId`], as the name suggests, identifies a particular definition, or top-level
item, in a given crate. It is composed of two parts: a [`CrateNum`] which identifies
the crate the definition comes from, and a [`DefIndex`] which identifies the definition
within the crate. Unlike [`NodeId`]s, there isn't a [`DefId`] for every expression, which
within the crate. Unlike [`HirId`]s, there isn't a [`DefId`] for every expression, which
makes them more stable across compilations.
- A [`LocalDefId`] is basically a [`DefId`] that is known to come from the current crate.