We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
for_loops_over_fallibles
1 parent 376a8c0 commit a59d071Copy full SHA for a59d071
src/tools/compiletest/src/json.rs
@@ -282,7 +282,7 @@ fn push_expected_errors(
282
283
// Add notes for the backtrace
284
for span in primary_spans {
285
- for frame in &span.expansion {
+ if let Some(frame) = &span.expansion {
286
push_backtrace(expected_errors, frame, file_name);
287
}
288
@@ -315,7 +315,7 @@ fn push_backtrace(
315
});
316
317
318
- for previous_expansion in &expansion.span.expansion {
+ if let Some(previous_expansion) = &expansion.span.expansion {
319
push_backtrace(expected_errors, previous_expansion, file_name);
320
321
0 commit comments