Skip to content

Commit 78b53db

Browse files
Remove obsolete comment
1 parent e232636 commit 78b53db

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/librustc/hir/map/mod.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -174,15 +174,6 @@ pub struct Map<'hir> {
174174
/// The SVH of the local crate.
175175
pub crate_hash: Svh,
176176

177-
/// `NodeId`s are sequential integers from 0, so we can be
178-
/// super-compact by storing them in a vector. Not everything with
179-
/// a `NodeId` is in the map, but empirically the occupancy is about
180-
/// 75-80%, so there's not too much overhead (certainly less than
181-
/// a hashmap, since they (at the time of writing) have a maximum
182-
/// of 75% occupancy).
183-
///
184-
/// Also, indexing is pretty quick when you've got a vector and
185-
/// plain old integers.
186177
map: FxHashMap<HirId, Entry<'hir>>,
187178

188179
definitions: &'hir Definitions,

0 commit comments

Comments
 (0)