mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
fix: Don't duplicate sysroot crates in rustc workspace
This commit is contained in:
parent
3c862507b9
commit
ecb8616870
4 changed files with 30 additions and 12 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue