We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d0192e commit a045140Copy full SHA for a045140
src/librustc_mir/transform/instrument_coverage.rs
@@ -25,11 +25,11 @@ pub struct InstrumentCoverage;
25
/// constructing the arguments for `llvm.instrprof.increment`.
26
pub(crate) fn provide(providers: &mut Providers<'_>) {
27
providers.coverage_data = |tcx, def_id| {
28
- let body = tcx.optimized_mir(def_id);
+ let mir_body = tcx.optimized_mir(def_id);
29
let count_code_region_fn =
30
tcx.require_lang_item(lang_items::CountCodeRegionFnLangItem, None);
31
let mut num_counters: u32 = 0;
32
- for (_, data) in traversal::preorder(body) {
+ for (_, data) in traversal::preorder(mir_body) {
33
if let Some(terminator) = &data.terminator {
34
if let TerminatorKind::Call { func: Operand::Constant(func), .. } = &terminator.kind
35
{
0 commit comments