Skip to content

Commit 5a97970

Browse files
committed
coverage: Make the remaining fields of CoverageSpan non-public
The struct itself is already non-public, so having public fields doesn't achieve anything.
1 parent 2c8830c commit 5a97970

File tree

1 file changed

+4
-4
lines changed
  • compiler/rustc_mir_transform/src/coverage

1 file changed

+4
-4
lines changed

compiler/rustc_mir_transform/src/coverage/spans.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ impl CoverageSpans {
6363
/// `dominates()` the `BasicBlock`s in this `CoverageSpan`.
6464
#[derive(Debug, Clone)]
6565
struct CoverageSpan {
66-
pub span: Span,
67-
pub bcb: BasicCoverageBlock,
66+
span: Span,
67+
bcb: BasicCoverageBlock,
6868
/// List of all the original spans from MIR that have been merged into this
6969
/// span. Mainly used to precisely skip over gaps when truncating a span.
70-
pub merged_spans: Vec<Span>,
71-
pub is_closure: bool,
70+
merged_spans: Vec<Span>,
71+
is_closure: bool,
7272
}
7373

7474
impl CoverageSpan {

0 commit comments

Comments
 (0)