mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-26 17:57:19 +00:00
ItemTree's ItemVisibilities has no identity, so deduplicate
This commit is contained in:
parent
c15fc9a344
commit
13494f4cac
7 changed files with 39 additions and 38 deletions
|
|
@ -20,12 +20,10 @@ use span::Edition;
|
|||
use triomphe::Arc;
|
||||
use vfs::{AbsPathBuf, AnchoredPath, FileId, VfsPath, file_set::FileSet};
|
||||
|
||||
use crate::{CrateWorkspaceData, EditionedFileId, RootQueryDb};
|
||||
use crate::{CrateWorkspaceData, EditionedFileId, FxIndexSet, RootQueryDb};
|
||||
|
||||
pub type ProcMacroPaths = FxHashMap<CrateBuilderId, Result<(String, AbsPathBuf), String>>;
|
||||
|
||||
type FxIndexSet<T> = indexmap::IndexSet<T, FxBuildHasher>;
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, PartialOrd, Ord)]
|
||||
pub struct SourceRootId(pub u32);
|
||||
|
||||
|
|
|
|||
|
|
@ -28,6 +28,8 @@ use syntax::{Parse, SyntaxError, ast};
|
|||
use triomphe::Arc;
|
||||
pub use vfs::{AnchoredPath, AnchoredPathBuf, FileId, VfsPath, file_set::FileSet};
|
||||
|
||||
pub type FxIndexSet<T> = indexmap::IndexSet<T, rustc_hash::FxBuildHasher>;
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! impl_intern_key {
|
||||
($id:ident, $loc:ident) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue