Drive-by cleanup: debug::term_type => TerminatorKind::name

This commit is contained in:
Maybe Waffle
2023-05-09 07:46:16 +00:00
parent 03d5f9b783
commit f542778533
4 changed files with 32 additions and 32 deletions

View File

@@ -1,4 +1,3 @@
use super::debug::term_type;
use super::graph::{BasicCoverageBlock, BasicCoverageBlockData, CoverageGraph, START_BCB};
use itertools::Itertools;
@@ -40,7 +39,7 @@ impl CoverageStatement {
"{}: @{}.{}: {:?}",
source_range_no_file(tcx, span),
bb.index(),
term_type(&term.kind),
term.kind.name(),
term.kind
)
}