mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
Remove ModId
This commit is contained in:
parent
1913bedc2e
commit
8fc51501e0
2 changed files with 1 additions and 9 deletions
|
@ -213,11 +213,7 @@ impl ModuleId {
|
||||||
.find(|it| it.name == name)?;
|
.find(|it| it.name == name)?;
|
||||||
Some(*link.points_to.first()?)
|
Some(*link.points_to.first()?)
|
||||||
}
|
}
|
||||||
fn problems(
|
fn problems(self, tree: &ModuleTree, db: &impl SyntaxDatabase) -> Vec<(SyntaxNode, Problem)> {
|
||||||
self,
|
|
||||||
tree: &ModuleTree,
|
|
||||||
db: &impl SyntaxDatabase,
|
|
||||||
) -> Vec<(SyntaxNode, Problem)> {
|
|
||||||
tree.module(self)
|
tree.module(self)
|
||||||
.children
|
.children
|
||||||
.iter()
|
.iter()
|
||||||
|
|
|
@ -89,10 +89,6 @@ macro_rules! impl_numeric_id {
|
||||||
pub(crate) struct FnId(u32);
|
pub(crate) struct FnId(u32);
|
||||||
impl_numeric_id!(FnId);
|
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 {
|
pub(crate) trait IdDatabase: salsa::Database {
|
||||||
fn id_maps(&self) -> &IdMaps;
|
fn id_maps(&self) -> &IdMaps;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue