mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Do not use reference search in runnables::related_tests
This commit is contained in:
parent
0ff380fe17
commit
366499c3be
3 changed files with 48 additions and 42 deletions
|
@ -228,6 +228,7 @@ impl<'db, DB: HirDatabase> Semantics<'db, DB> {
|
|||
token.parent().into_iter().flat_map(move |it| self.ancestors_with_macros(it))
|
||||
}
|
||||
|
||||
/// Iterates the ancestors of the given node, climbing up macro expansions while doing so.
|
||||
pub fn ancestors_with_macros(&self, node: SyntaxNode) -> impl Iterator<Item = SyntaxNode> + '_ {
|
||||
self.imp.ancestors_with_macros(node)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue