about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJonathan Turner <jturner@mozilla.com>2016-04-22 09:30:38 -0700
committerJonathan Turner <jturner@mozilla.com>2016-04-22 09:30:38 -0700
commit10d4cda9ed3df859342a47a33223b450a86f9798 (patch)
tree79a85b75410c6c191125cddaf8d19b6f7c80a26e
parentd81de4871fbaf15198857af06b4f15fd4e1bfb13 (diff)
Fix filepath check for macro backtrace
-rw-r--r--src/tools/compiletest/src/json.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/compiletest/src/json.rs b/src/tools/compiletest/src/json.rs
index 43b5572dfd6..073b5e57cc7 100644
--- a/src/tools/compiletest/src/json.rs
+++ b/src/tools/compiletest/src/json.rs
@@ -181,7 +181,7 @@ fn push_expected_errors(expected_errors: &mut Vec<Error>,
 fn push_backtrace(expected_errors: &mut Vec<Error>,
                   expansion: &DiagnosticSpanMacroExpansion,
                   file_name: &str) {
-    if expansion.span.file_name == file_name {
+    if Path::new(&expansion.span.file_name) == Path::new(&file_name) {
         expected_errors.push(
             Error {
                 line_num: expansion.span.line_start,