From 7094291573dc819e3115950ec3b2316bd5e9ea33 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 16 Aug 2018 12:51:40 +0300 Subject: tt-attrs --- crates/libsyntax2/tests/test/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/libsyntax2/tests/test/main.rs') diff --git a/crates/libsyntax2/tests/test/main.rs b/crates/libsyntax2/tests/test/main.rs index 6b0a44d0c..802dba0e9 100644 --- a/crates/libsyntax2/tests/test/main.rs +++ b/crates/libsyntax2/tests/test/main.rs @@ -70,19 +70,19 @@ fn assert_equal_text(expected: &str, actual: &str, path: &Path) { return; } let dir = project_dir(); - let path = path.strip_prefix(&dir).unwrap_or_else(|_| path); + let pretty_path = path.strip_prefix(&dir).unwrap_or_else(|_| path); if expected.trim() == actual.trim() { println!("whitespace difference, rewriting"); - println!("file: {}\n", path.display()); + println!("file: {}\n", pretty_path.display()); fs::write(path, actual).unwrap(); return; } if REWRITE { - println!("rewriting {}", path.display()); + println!("rewriting {}", pretty_path.display()); fs::write(path, actual).unwrap(); return; } - assert_eq_text!(expected, actual, "file: {}", path.display()); + assert_eq_text!(expected, actual, "file: {}", pretty_path.display()); } fn collect_tests(paths: &[&str]) -> Vec { -- cgit v1.2.3