diff options
Diffstat (limited to 'crates/ra_analysis/src/db')
-rw-r--r-- | crates/ra_analysis/src/db/input.rs | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/crates/ra_analysis/src/db/input.rs b/crates/ra_analysis/src/db/input.rs index 957d082f9..25b9935cb 100644 --- a/crates/ra_analysis/src/db/input.rs +++ b/crates/ra_analysis/src/db/input.rs | |||
@@ -59,25 +59,3 @@ impl Hash for SourceRoot { | |||
59 | } | 59 | } |
60 | 60 | ||
61 | pub(crate) const WORKSPACE: SourceRootId = SourceRootId(0); | 61 | pub(crate) const WORKSPACE: SourceRootId = SourceRootId(0); |
62 | |||
63 | |||
64 | #[derive(Default, Debug, Eq)] | ||
65 | pub(crate) struct FileSet { | ||
66 | pub(crate) files: FxHashSet<FileId>, | ||
67 | pub(crate) resolver: FileResolverImp, | ||
68 | } | ||
69 | |||
70 | impl PartialEq for FileSet { | ||
71 | fn eq(&self, other: &FileSet) -> bool { | ||
72 | self.files == other.files && self.resolver == other.resolver | ||
73 | } | ||
74 | } | ||
75 | |||
76 | impl Hash for FileSet { | ||
77 | fn hash<H: Hasher>(&self, hasher: &mut H) { | ||
78 | let mut files = self.files.iter().cloned().collect::<Vec<_>>(); | ||
79 | files.sort(); | ||
80 | files.hash(hasher); | ||
81 | } | ||
82 | } | ||
83 | |||