Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 65a92f3

Browse files
authoredJan 11, 2023
Rollup merge of #106717 - klensy:typo, r=lcnr
fix typo LocalItemId -> ItemLocalId
2 parents 8ca15b4 + cce2f5f commit 65a92f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

Diff for: ‎compiler/rustc_hir/src/hir_id.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ rustc_index::newtype_index! {
148148
/// that is, within a `hir::Item`, `hir::TraitItem`, or `hir::ImplItem`. There is no
149149
/// guarantee that the numerical value of a given `ItemLocalId` corresponds to
150150
/// the node's position within the owning item in any way, but there is a
151-
/// guarantee that the `LocalItemId`s within an owner occupy a dense range of
151+
/// guarantee that the `ItemLocalId`s within an owner occupy a dense range of
152152
/// integers starting at zero, so a mapping that maps all or most nodes within
153153
/// an "item-like" to something else can be implemented by a `Vec` instead of a
154154
/// tree or hash map.
@@ -161,7 +161,7 @@ impl ItemLocalId {
161161
pub const INVALID: ItemLocalId = ItemLocalId::MAX;
162162
}
163163

164-
// Safety: Ord is implement as just comparing the LocalItemId's numerical
164+
// Safety: Ord is implement as just comparing the ItemLocalId's numerical
165165
// values and these are not changed by (de-)serialization.
166166
unsafe impl StableOrd for ItemLocalId {}
167167

0 commit comments

Comments
 (0)
Please sign in to comment.