Remove ModId

This commit is contained in:
Aleksey Kladov 2018-11-20 17:23:17 +03:00
parent 1913bedc2e
commit 8fc51501e0
2 changed files with 1 additions and 9 deletions

View file

@ -213,11 +213,7 @@ impl ModuleId {
.find(|it| it.name == name)?;
Some(*link.points_to.first()?)
}
fn problems(
self,
tree: &ModuleTree,
db: &impl SyntaxDatabase,
) -> Vec<(SyntaxNode, Problem)> {
fn problems(self, tree: &ModuleTree, db: &impl SyntaxDatabase) -> Vec<(SyntaxNode, Problem)> {
tree.module(self)
.children
.iter()

View file

@ -89,10 +89,6 @@ macro_rules! impl_numeric_id {
pub(crate) struct FnId(u32);
impl_numeric_id!(FnId);
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub(crate) struct ModId(u32);
impl_numeric_id!(ModId);
pub(crate) trait IdDatabase: salsa::Database {
fn id_maps(&self) -> &IdMaps;
}