mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-20 01:00:01 +00:00
More principled indentation trimming in fixtures
This commit is contained in:
parent
f2f69e75c8
commit
aa69757a01
16 changed files with 540 additions and 557 deletions
|
@ -43,7 +43,7 @@ macro_rules! assert_eq_text {
|
|||
if left.trim() == right.trim() {
|
||||
eprintln!("Left:\n{:?}\n\nRight:\n{:?}\n\nWhitespace difference\n", left, right);
|
||||
} else {
|
||||
let changeset = $crate::__Changeset::new(right, left, "\n");
|
||||
let changeset = $crate::__Changeset::new(left, right, "\n");
|
||||
eprintln!("Left:\n{}\n\nRight:\n{}\n\nDiff:\n{}\n", left, right, changeset);
|
||||
}
|
||||
eprintln!($($tt)*);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue