mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
show error offsets in tests
This commit is contained in:
parent
7a1cae59ac
commit
2e722ec54b
46 changed files with 299 additions and 290 deletions
|
@ -76,7 +76,7 @@ impl Parse {
|
|||
pub fn debug_dump(&self) -> String {
|
||||
let mut buf = self.tree.syntax().debug_dump();
|
||||
for err in self.errors.iter() {
|
||||
writeln!(buf, "err: `{}`", err).unwrap();
|
||||
writeln!(buf, "error {:?}: {}", err.location(), err.kind()).unwrap();
|
||||
}
|
||||
buf
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue