diff options
Diffstat (limited to 'crates/ra_hir/src/ids.rs')
-rw-r--r-- | crates/ra_hir/src/ids.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ra_hir/src/ids.rs b/crates/ra_hir/src/ids.rs index 2bd617436..a144e4a1e 100644 --- a/crates/ra_hir/src/ids.rs +++ b/crates/ra_hir/src/ids.rs | |||
@@ -373,6 +373,7 @@ impl SourceFileItems { | |||
373 | impl std::ops::Index<SourceFileItemId> for SourceFileItems { | 373 | impl std::ops::Index<SourceFileItemId> for SourceFileItems { |
374 | type Output = SyntaxNodePtr; | 374 | type Output = SyntaxNodePtr; |
375 | fn index(&self, idx: SourceFileItemId) -> &SyntaxNodePtr { | 375 | fn index(&self, idx: SourceFileItemId) -> &SyntaxNodePtr { |
376 | eprintln!("invalid SourceFileItemId({:?}) for file({:?})", idx, self.file_id); | ||
376 | &self.arena[idx] | 377 | &self.arena[idx] |
377 | } | 378 | } |
378 | } | 379 | } |