fix: Don't duplicate sysroot crates in rustc workspace

This commit is contained in:
Lukas Wirth 2023-05-31 15:37:35 +02:00
parent 3c862507b9
commit ecb8616870
4 changed files with 30 additions and 12 deletions

View file

@ -2703,8 +2703,8 @@ impl LocalSource {
self.source.file_id
}
pub fn name(&self) -> Option<ast::Name> {
self.source.value.name()
pub fn name(&self) -> Option<InFile<ast::Name>> {
self.source.as_ref().map(|it| it.name()).transpose()
}
pub fn syntax(&self) -> &SyntaxNode {