diff options
Diffstat (limited to 'crates/ra_syntax/src/lib.rs')
-rw-r--r-- | crates/ra_syntax/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/lib.rs b/crates/ra_syntax/src/lib.rs index 604abe5c6..605350ac4 100644 --- a/crates/ra_syntax/src/lib.rs +++ b/crates/ra_syntax/src/lib.rs | |||
@@ -114,7 +114,7 @@ impl Parse<SyntaxNode> { | |||
114 | 114 | ||
115 | impl Parse<SourceFile> { | 115 | impl Parse<SourceFile> { |
116 | pub fn debug_dump(&self) -> String { | 116 | pub fn debug_dump(&self) -> String { |
117 | let mut buf = self.tree().syntax().debug_dump(); | 117 | let mut buf = format!("{:#?}", self.tree().syntax()); |
118 | for err in self.errors.iter() { | 118 | for err in self.errors.iter() { |
119 | writeln!(buf, "error {:?}: {}", err.location(), err.kind()).unwrap(); | 119 | writeln!(buf, "error {:?}: {}", err.location(), err.kind()).unwrap(); |
120 | } | 120 | } |