mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
Merge #10781
10781: internal: Do not use reference search in `runnables::related_tests` r=Veykril a=Veykril bors r+ Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
This commit is contained in:
commit
add6cccd4c
4 changed files with 122 additions and 152 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