Format all the let chains in compiler
This commit is contained in:
@@ -111,9 +111,10 @@ pub fn report_suspicious_mismatch_block(
|
||||
// If there is no suspicious span, give the last properly closed block may help
|
||||
if let Some(parent) = diag_info.matching_block_spans.last()
|
||||
&& diag_info.open_braces.last().is_none()
|
||||
&& diag_info.empty_block_spans.iter().all(|&sp| sp != parent.0.to(parent.1)) {
|
||||
err.span_label(parent.0, "this opening brace...");
|
||||
err.span_label(parent.1, "...matches this closing brace");
|
||||
&& diag_info.empty_block_spans.iter().all(|&sp| sp != parent.0.to(parent.1))
|
||||
{
|
||||
err.span_label(parent.0, "this opening brace...");
|
||||
err.span_label(parent.1, "...matches this closing brace");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user