Skip to content

Commit 99e1b1d

Browse files
rasendubimark-i-m
authored andcommitted
Update BodyId description
It is now a newtype'd HirId, not NodeId. See rust-lang#58167.
1 parent 813cdf6 commit 99e1b1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hir.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ sorts of identifiers in active use:
8787
offset within that item.
8888
- the key point of a [`HirId`] is that it is *relative* to some item
8989
(which is named via a [`DefId`]).
90-
- [`BodyId`], this is an absolute identifier that refers to a specific
90+
- [`BodyId`], this is an identifier that refers to a specific
9191
body (definition of a function or constant) in the crate. It is currently
92-
effectively a "newtype'd" [`NodeId`].
92+
effectively a "newtype'd" [`HirId`].
9393
- [`NodeId`], which is an absolute id that identifies a single node in the HIR
9494
tree.
9595
- While these are still in common use, **they are being slowly phased out**.

0 commit comments

Comments
 (0)