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 Jan 5, 2024
1 parent cd50843 commit 514e026
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions compiler/rustc_mir_transform/src/coverage/spans.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,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 514e026

Please sign in to comment.