mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-31 07:37:30 +00:00
Fix indentation of inserted use statements
This commit is contained in:
parent
4105378dc7
commit
bc65200105
2 changed files with 135 additions and 37 deletions
|
@ -43,12 +43,12 @@ macro_rules! assert_eq_text {
|
|||
let right = $right;
|
||||
if left != right {
|
||||
if left.trim() == right.trim() {
|
||||
eprintln!("Left:\n{:?}\n\nRight:\n{:?}\n\nWhitespace difference\n", left, right);
|
||||
std::eprintln!("Left:\n{:?}\n\nRight:\n{:?}\n\nWhitespace difference\n", left, right);
|
||||
} else {
|
||||
let changeset = $crate::__Changeset::new(left, right, "\n");
|
||||
eprintln!("Left:\n{}\n\nRight:\n{}\n\nDiff:\n{}\n", left, right, changeset);
|
||||
std::eprintln!("Left:\n{}\n\nRight:\n{}\n\nDiff:\n{}\n", left, right, changeset);
|
||||
}
|
||||
eprintln!($($tt)*);
|
||||
std::eprintln!($($tt)*);
|
||||
panic!("text differs");
|
||||
}
|
||||
}};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue