This comment has been minimized.

Now in order to be able to later remove NodeIds from HIR nodes I need to drop it from collector::{insert, insert_entry} as the next step. How do you suggest it could be done? Change NodeCollector.map to an FxHashMap<Entry<'hir>> or perhaps to a Vec<Option<ItemLocalId>>?

This comment has been minimized.

@ljedrz That commit must exist inside the rust-clippy repository. You'll need to submit a PR to the rust-clippy repository, which a clippy maintainer could create a branch pointing to that commit (or merge it).

Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.