Re-format code with new rustfmt
This commit is contained in:
parent
db3e2bacb6
commit
917f6540ed
70 changed files with 652 additions and 490 deletions
|
@ -138,7 +138,9 @@ impl CoverageCounters {
|
|||
// If the BCB has an edge counter (to be injected into a new `BasicBlock`), it can also
|
||||
// have an expression (to be injected into an existing `BasicBlock` represented by this
|
||||
// `BasicCoverageBlock`).
|
||||
if let Some(node_counter) = self.bcb_counter(to_bcb) && !node_counter.is_expression() {
|
||||
if let Some(node_counter) = self.bcb_counter(to_bcb)
|
||||
&& !node_counter.is_expression()
|
||||
{
|
||||
bug!(
|
||||
"attempt to add an incoming edge counter from {from_bcb:?} \
|
||||
when the target BCB already has {node_counter:?}"
|
||||
|
|
|
@ -475,7 +475,9 @@ impl<'a> CoverageSpansGenerator<'a> {
|
|||
}
|
||||
while let Some(curr) = self.sorted_spans_iter.next() {
|
||||
debug!("FOR curr={:?}", curr);
|
||||
if let Some(prev) = &self.some_prev && prev.span.lo() > curr.span.lo() {
|
||||
if let Some(prev) = &self.some_prev
|
||||
&& prev.span.lo() > curr.span.lo()
|
||||
{
|
||||
// Skip curr because prev has already advanced beyond the end of curr.
|
||||
// This can only happen if a prior iteration updated `prev` to skip past
|
||||
// a region of code, such as skipping past a closure.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue