Skip to content

Commit

Permalink
Fix for_loops_over_fallibles hits in compiletest/src/json.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
zachs18 authored May 16, 2024
1 parent 376a8c0 commit a59d071
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tools/compiletest/src/json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ fn push_expected_errors(

// Add notes for the backtrace
for span in primary_spans {
for frame in &span.expansion {
if let Some(frame) = &span.expansion {
push_backtrace(expected_errors, frame, file_name);
}
}
Expand Down Expand Up @@ -315,7 +315,7 @@ fn push_backtrace(
});
}

for previous_expansion in &expansion.span.expansion {
if let Some(previous_expansion) = &expansion.span.expansion {
push_backtrace(expected_errors, previous_expansion, file_name);
}
}

0 comments on commit a59d071

Please sign in to comment.