mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
Only add entries to SourceToDef dynmaps when they come from the same file
This commit is contained in:
parent
0c0142f61a
commit
c90ecc5c26
3 changed files with 125 additions and 76 deletions
|
@ -7,7 +7,7 @@ use base_db::FileId;
|
|||
use either::Either;
|
||||
use hir_expand::{
|
||||
name::{name, AsName, Name},
|
||||
InFile,
|
||||
HirFileId, InFile,
|
||||
};
|
||||
use la_arena::{Arena, ArenaMap};
|
||||
use syntax::ast::{self, GenericParamsOwner, NameOwner, TypeBoundsOwner};
|
||||
|
@ -438,7 +438,7 @@ impl HasChildSource<LocalConstParamId> for GenericDefId {
|
|||
}
|
||||
|
||||
impl ChildBySource for GenericDefId {
|
||||
fn child_by_source_to(&self, db: &dyn DefDatabase, res: &mut DynMap) {
|
||||
fn child_by_source_to(&self, db: &dyn DefDatabase, _: HirFileId, res: &mut DynMap) {
|
||||
let (_, sm) = GenericParams::new(db, *self);
|
||||
|
||||
let sm = sm.as_ref();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue