aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/change.rs
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2019-05-29 07:40:39 +0100
committerbors[bot] <bors[bot]@users.noreply.github.com>2019-05-29 07:40:39 +0100
commit7a1cae59acf72f821343b2ba10ef69fb92a5b952 (patch)
tree26e606ccd132a24e9bc89cf174e4adadf60c5992 /crates/ra_ide_api/src/change.rs
parentb0d84cb8faefedde7ace4ff152a2a13408e79e5d (diff)
parent80a17251473bd6213a4c8a51ea7f732394d173c5 (diff)
Merge #1337
1337: Move syntax errors our of syntax tree r=matklad a=matklad I am not really sure if it's a good idea, but `SyntaxError` do not really belong to a `SyntaxTree`. So let's just store them on the side? Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_ide_api/src/change.rs')
-rw-r--r--crates/ra_ide_api/src/change.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide_api/src/change.rs b/crates/ra_ide_api/src/change.rs
index 0e64abdbd..4b597afc0 100644
--- a/crates/ra_ide_api/src/change.rs
+++ b/crates/ra_ide_api/src/change.rs
@@ -138,7 +138,7 @@ impl LibraryData {
138 files: Vec<(FileId, RelativePathBuf, Arc<String>)>, 138 files: Vec<(FileId, RelativePathBuf, Arc<String>)>,
139 ) -> LibraryData { 139 ) -> LibraryData {
140 let symbol_index = SymbolIndex::for_files(files.par_iter().map(|(file_id, _, text)| { 140 let symbol_index = SymbolIndex::for_files(files.par_iter().map(|(file_id, _, text)| {
141 let file = SourceFile::parse(text); 141 let file = SourceFile::parse(text).tree;
142 (*file_id, file) 142 (*file_id, file)
143 })); 143 }));
144 let mut root_change = RootChange::default(); 144 let mut root_change = RootChange::default();