ItemTree's ItemVisibilities has no identity, so deduplicate

This commit is contained in:
Lukas Wirth 2025-06-12 08:52:19 +02:00
parent c15fc9a344
commit 13494f4cac
7 changed files with 39 additions and 38 deletions

View file

@ -7,6 +7,7 @@ mod path;
use std::mem;
use base_db::FxIndexSet;
use cfg::CfgOptions;
use either::Either;
use hir_expand::{
@ -66,8 +67,6 @@ use crate::{
pub use self::path::hir_segment_to_ast_segment;
type FxIndexSet<K> = indexmap::IndexSet<K, std::hash::BuildHasherDefault<rustc_hash::FxHasher>>;
pub(super) fn lower_body(
db: &dyn DefDatabase,
owner: DefWithBodyId,