Fix filepath check for macro backtrace

This commit is contained in:
Jonathan Turner 2016-04-22 09:30:38 -07:00
parent d81de4871f
commit 10d4cda9ed
1 changed files with 1 additions and 1 deletions

View File

@ -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,