mirror of https://github.com/rust-lang/rust.git
Fix `for_loops_over_fallibles` hits in compiletest/src/json.rs
This commit is contained in:
parent
376a8c0ae5
commit
a59d071e9c
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue