aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_cli/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_cli/src')
-rw-r--r--crates/ra_cli/src/analysis_stats.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_cli/src/analysis_stats.rs b/crates/ra_cli/src/analysis_stats.rs
index 3429a3c49..9cd21e4b6 100644
--- a/crates/ra_cli/src/analysis_stats.rs
+++ b/crates/ra_cli/src/analysis_stats.rs
@@ -98,7 +98,7 @@ pub fn run(
98 let src = f.source(db); 98 let src = f.source(db);
99 let original_file = src.file_id.original_file(db); 99 let original_file = src.file_id.original_file(db);
100 let path = db.file_relative_path(original_file); 100 let path = db.file_relative_path(original_file);
101 let syntax_range = src.ast.syntax().text_range(); 101 let syntax_range = src.value.syntax().text_range();
102 write!(msg, " ({:?} {})", path, syntax_range).unwrap(); 102 write!(msg, " ({:?} {})", path, syntax_range).unwrap();
103 } 103 }
104 bar.set_message(&msg); 104 bar.set_message(&msg);
@@ -135,7 +135,7 @@ pub fn run(
135 let path = db.file_relative_path(original_file); 135 let path = db.file_relative_path(original_file);
136 let line_index = host.analysis().file_line_index(original_file).unwrap(); 136 let line_index = host.analysis().file_line_index(original_file).unwrap();
137 let text_range = src 137 let text_range = src
138 .ast 138 .value
139 .either(|it| it.syntax().text_range(), |it| it.syntax().text_range()); 139 .either(|it| it.syntax().text_range(), |it| it.syntax().text_range());
140 let (start, end) = ( 140 let (start, end) = (
141 line_index.line_col(text_range.start()), 141 line_index.line_col(text_range.start()),