mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 14:51:48 +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)?;
|
||||
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()
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue