From d87e197f263a54e37381c274c9f5c29de3fbfc76 Mon Sep 17 00:00:00 2001 From: Camelid Date: Sat, 9 Jan 2021 17:10:18 -0800 Subject: [PATCH] Point to `HirId` instead of `NodeId` --- src/identifiers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/identifiers.md b/src/identifiers.md index d04509b6..37e6a1c9 100644 --- a/src/identifiers.md +++ b/src/identifiers.md @@ -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.