mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
fix: Fix build scripts not being rebuilt in some occasions
This commit is contained in:
parent
a02a219773
commit
1e6cef94df
16 changed files with 121 additions and 77 deletions
|
@ -54,7 +54,7 @@ pub(crate) fn parent_module(db: &RootDatabase, position: FilePosition) -> Vec<Na
|
|||
}
|
||||
}
|
||||
|
||||
/// Returns `Vec` for the same reason as `parent_module`
|
||||
/// This returns `Vec` because a module may be included from several places.
|
||||
pub(crate) fn crates_for(db: &RootDatabase, file_id: FileId) -> Vec<CrateId> {
|
||||
db.relevant_crates(file_id)
|
||||
.iter()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue