We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e232636 commit 78b53dbCopy full SHA for 78b53db
src/librustc/hir/map/mod.rs
@@ -174,15 +174,6 @@ pub struct Map<'hir> {
174
/// The SVH of the local crate.
175
pub crate_hash: Svh,
176
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.
186
map: FxHashMap<HirId, Entry<'hir>>,
187
188
definitions: &'hir Definitions,
0 commit comments