diff options
Diffstat (limited to 'crates/ra_analysis/src/symbol_index.rs')
-rw-r--r-- | crates/ra_analysis/src/symbol_index.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_analysis/src/symbol_index.rs b/crates/ra_analysis/src/symbol_index.rs index a6937d7f2..747b34e38 100644 --- a/crates/ra_analysis/src/symbol_index.rs +++ b/crates/ra_analysis/src/symbol_index.rs | |||
@@ -32,7 +32,7 @@ salsa::query_group! { | |||
32 | 32 | ||
33 | fn file_symbols(db: &impl SyntaxDatabase, file_id: FileId) -> Cancelable<Arc<SymbolIndex>> { | 33 | fn file_symbols(db: &impl SyntaxDatabase, file_id: FileId) -> Cancelable<Arc<SymbolIndex>> { |
34 | db.check_canceled()?; | 34 | db.check_canceled()?; |
35 | let syntax = db.file_syntax(file_id); | 35 | let syntax = db.source_file(file_id); |
36 | Ok(Arc::new(SymbolIndex::for_file(file_id, syntax))) | 36 | Ok(Arc::new(SymbolIndex::for_file(file_id, syntax))) |
37 | } | 37 | } |
38 | 38 | ||