Skip to content

Commit

Permalink
coverage: Make the remaining fields of CoverageSpan non-public
Browse files Browse the repository at this point in the history
The struct itself is already non-public, so having public fields doesn't
achieve anything.
  • Loading branch information
Zalathar committed Dec 28, 2023
1 parent 64ae03c commit 6b72330
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions compiler/rustc_mir_transform/src/coverage/spans.rs
Expand Up @@ -63,12 +63,12 @@ impl CoverageSpans {
/// `dominates()` the `BasicBlock`s in this `CoverageSpan`.
#[derive(Debug, Clone)]
struct CoverageSpan {
pub span: Span,
pub bcb: BasicCoverageBlock,
span: Span,
bcb: BasicCoverageBlock,
/// List of all the original spans from MIR that have been merged into this
/// span. Mainly used to precisely skip over gaps when truncating a span.
pub merged_spans: Vec<Span>,
pub is_closure: bool,
merged_spans: Vec<Span>,
is_closure: bool,
}

impl CoverageSpan {
Expand Down

0 comments on commit 6b72330

Please sign in to comment.