aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_cli
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-07-20 10:59:10 +0100
committerbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-07-20 10:59:10 +0100
commit6b352ffeb346eb7c7e46e00e790c2f395907eaa6 (patch)
treef19271365126259a7975dda9ee3e1e1496a299dd /crates/ra_cli
parent2830d1376b05794c7bf1467fe52ad3bc0eb4ca41 (diff)
parentf3bdbec1b68fa0e20f0b7b6c6ef64e1507970b0d (diff)
Merge #1560
1560: move debug_dump to fmt::Debug r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_cli')
-rw-r--r--crates/ra_cli/src/analysis_stats.rs2
-rw-r--r--crates/ra_cli/src/main.rs2
2 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 c2a2b66d5..403aab352 100644
--- a/crates/ra_cli/src/analysis_stats.rs
+++ b/crates/ra_cli/src/analysis_stats.rs
@@ -70,7 +70,7 @@ pub fn run(verbose: bool, memory_usage: bool, path: &Path, only: Option<&str>) -
70 let src = f.source(db); 70 let src = f.source(db);
71 let original_file = src.file_id.original_file(db); 71 let original_file = src.file_id.original_file(db);
72 let path = db.file_relative_path(original_file); 72 let path = db.file_relative_path(original_file);
73 let syntax_range = src.ast.syntax().range(); 73 let syntax_range = src.ast.syntax().text_range();
74 write!(msg, " ({:?} {})", path, syntax_range).unwrap(); 74 write!(msg, " ({:?} {})", path, syntax_range).unwrap();
75 } 75 }
76 bar.set_message(&msg); 76 bar.set_message(&msg);
diff --git a/crates/ra_cli/src/main.rs b/crates/ra_cli/src/main.rs
index 375e2f508..de8191ca3 100644
--- a/crates/ra_cli/src/main.rs
+++ b/crates/ra_cli/src/main.rs
@@ -55,7 +55,7 @@ fn main() -> Result<()> {
55 let _p = profile("parsing"); 55 let _p = profile("parsing");
56 let file = file()?; 56 let file = file()?;
57 if !matches.is_present("no-dump") { 57 if !matches.is_present("no-dump") {
58 println!("{}", file.syntax().debug_dump()); 58 println!("{:#?}", file.syntax());
59 } 59 }
60 std::mem::forget(file); 60 std::mem::forget(file);
61 } 61 }