aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_cli/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_cli/src/main.rs')
-rw-r--r--crates/ra_cli/src/main.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_cli/src/main.rs b/crates/ra_cli/src/main.rs
index 72e6ae4d5..294f4b8af 100644
--- a/crates/ra_cli/src/main.rs
+++ b/crates/ra_cli/src/main.rs
@@ -4,7 +4,7 @@ use std::{fs, io::Read, path::Path, time::Instant};
4 4
5use clap::{App, Arg, SubCommand}; 5use clap::{App, Arg, SubCommand};
6use join_to_string::join; 6use join_to_string::join;
7use ra_ide_api_light::{extend_selection, file_structure, syntax_tree}; 7use ra_ide_api_light::{extend_selection, file_structure};
8use ra_syntax::{SourceFile, TextRange, TreeArc, AstNode}; 8use ra_syntax::{SourceFile, TextRange, TreeArc, AstNode};
9use tools::collect_tests; 9use tools::collect_tests;
10use flexi_logger::Logger; 10use flexi_logger::Logger;
@@ -37,7 +37,7 @@ fn main() -> Result<()> {
37 let file = file()?; 37 let file = file()?;
38 let elapsed = start.elapsed(); 38 let elapsed = start.elapsed();
39 if !matches.is_present("no-dump") { 39 if !matches.is_present("no-dump") {
40 println!("{}", syntax_tree(&file)); 40 println!("{}", file.syntax().debug_dump());
41 } 41 }
42 eprintln!("parsing: {:?}", elapsed); 42 eprintln!("parsing: {:?}", elapsed);
43 ::std::mem::forget(file); 43 ::std::mem::forget(file);
@@ -94,7 +94,7 @@ fn render_test(file: &Path, line: usize) -> Result<(String, String)> {
94 Some((_start_line, test)) => test, 94 Some((_start_line, test)) => test,
95 }; 95 };
96 let file = SourceFile::parse(&test.text); 96 let file = SourceFile::parse(&test.text);
97 let tree = syntax_tree(&file); 97 let tree = file.syntax().debug_dump();
98 Ok((test.text, tree)) 98 Ok((test.text, tree))
99} 99}
100 100