Skip to content

Commit 10d4cda

Browse files
author
Jonathan Turner
committed
Fix filepath check for macro backtrace
1 parent d81de48 commit 10d4cda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/compiletest/src/json.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ fn push_expected_errors(expected_errors: &mut Vec<Error>,
181181
fn push_backtrace(expected_errors: &mut Vec<Error>,
182182
expansion: &DiagnosticSpanMacroExpansion,
183183
file_name: &str) {
184-
if expansion.span.file_name == file_name {
184+
if Path::new(&expansion.span.file_name) == Path::new(&file_name) {
185185
expected_errors.push(
186186
Error {
187187
line_num: expansion.span.line_start,

0 commit comments

Comments
 (0)