We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b0c6bd commit 82a14eaCopy full SHA for 82a14ea
src/hir.md
@@ -85,8 +85,8 @@ sorts of identifiers in active use:
85
of items that is maintained per crate).
86
- [`LocalDefId`], which is basically a `DefId` but for the local crate.
87
- They are the prefered way to encode that only a local `DefId` is
88
- expected, because it prevents [`DefId`] from upstream crates from
89
- being passed instead and causing bugs at compile time.
+ expected, because it enforces at compile time that not any [`DefId`],
+ that potentially comes from an upstream crate, can be passed.
90
- They can still be transformed back into `DefId`s as needed by using
91
the [`LocalDefId::to_def_id`][to_def_id] method.
92
- [`HirId`], which combines the index of a particular item with an
0 commit comments