mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
rename ModuleId -> CrateModuleId
This commit is contained in:
parent
c51a6a7bdd
commit
ee3cf6172b
8 changed files with 40 additions and 39 deletions
|
@ -373,6 +373,7 @@ impl SourceFileItems {
|
|||
impl std::ops::Index<SourceFileItemId> for SourceFileItems {
|
||||
type Output = SyntaxNodePtr;
|
||||
fn index(&self, idx: SourceFileItemId) -> &SyntaxNodePtr {
|
||||
eprintln!("invalid SourceFileItemId({:?}) for file({:?})", idx, self.file_id);
|
||||
&self.arena[idx]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue