mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
internal: prep to 2021 edition
This commit is contained in:
parent
2fbe1c9934
commit
1850849325
4 changed files with 11 additions and 9 deletions
|
@ -547,10 +547,10 @@ impl InFile<SyntaxToken> {
|
|||
self,
|
||||
db: &dyn db::AstDatabase,
|
||||
) -> impl Iterator<Item = InFile<SyntaxNode>> + '_ {
|
||||
self.value
|
||||
.parent()
|
||||
.into_iter()
|
||||
.flat_map(move |parent| InFile::new(self.file_id, parent).ancestors_with_macros(db))
|
||||
self.value.parent().into_iter().flat_map({
|
||||
let file_id = self.file_id;
|
||||
move |parent| InFile::new(file_id, parent).ancestors_with_macros(db)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue