Skip to content

Commit 5e162a8

Browse files
committed
coverage: Simplify some debug logging
1 parent f61f34f commit 5e162a8

File tree

1 file changed

+1
-7
lines changed
  • compiler/rustc_mir_transform/src/coverage

1 file changed

+1
-7
lines changed

compiler/rustc_mir_transform/src/coverage/mod.rs

+1-7
Original file line numberDiff line numberDiff line change
@@ -362,19 +362,13 @@ fn inject_statement(mir_body: &mut mir::Body<'_>, counter_kind: CoverageKind, bb
362362
/// but it's hard to rule out entirely (especially in the presence of complex macros
363363
/// or other expansions), and if it does happen then skipping a span or function is
364364
/// better than an ICE or `llvm-cov` failure that the user might have no way to avoid.
365+
#[instrument(level = "debug", skip(source_map))]
365366
fn make_code_region(
366367
source_map: &SourceMap,
367368
file_name: Symbol,
368369
span: Span,
369370
body_span: Span,
370371
) -> Option<CodeRegion> {
371-
debug!(
372-
"Called make_code_region(file_name={}, span={}, body_span={})",
373-
file_name,
374-
source_map.span_to_diagnostic_string(span),
375-
source_map.span_to_diagnostic_string(body_span)
376-
);
377-
378372
let lo = span.lo();
379373
let hi = span.hi();
380374

0 commit comments

Comments
 (0)