From c8bcfe6a05d82e151d459bcd2bd8a7b2742f7a66 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 28 May 2019 18:07:39 +0300 Subject: fix syntax errors in tests --- crates/ra_db/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/ra_db/src/lib.rs') diff --git a/crates/ra_db/src/lib.rs b/crates/ra_db/src/lib.rs index 68b9a7143..7c49c585b 100644 --- a/crates/ra_db/src/lib.rs +++ b/crates/ra_db/src/lib.rs @@ -4,7 +4,7 @@ mod input; use std::{panic, sync::Arc}; -use ra_syntax::{TextUnit, TextRange, SourceFile, TreeArc}; +use ra_syntax::{TextUnit, TextRange, SourceFile, Parse}; use relative_path::RelativePathBuf; use ra_prof::profile; @@ -74,7 +74,7 @@ pub trait SourceDatabase: CheckCanceled + std::fmt::Debug { fn file_text(&self, file_id: FileId) -> Arc; // Parses the file into the syntax tree. #[salsa::invoke(parse_query)] - fn parse(&self, file_id: FileId) -> TreeArc; + fn parse(&self, file_id: FileId) -> Parse; /// Path to a file, relative to the root of its source root. #[salsa::input] fn file_relative_path(&self, file_id: FileId) -> RelativePathBuf; @@ -98,7 +98,7 @@ fn source_root_crates(db: &impl SourceDatabase, id: SourceRootId) -> Arc TreeArc { +fn parse_query(db: &impl SourceDatabase, file_id: FileId) -> Parse { let _p = profile("parse_query"); let text = db.file_text(file_id); SourceFile::parse(&*text) -- cgit v1.2.3