Skip to content

Commit 514e026

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 cd50843 commit 514e026

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
@@ -68,12 +68,12 @@ impl CoverageSpans {
6868
/// `dominates()` the `BasicBlock`s in this `CoverageSpan`.
6969
#[derive(Debug, Clone)]
7070
struct CoverageSpan {
71-
pub span: Span,
72-
pub bcb: BasicCoverageBlock,
71+
span: Span,
72+
bcb: BasicCoverageBlock,
7373
/// List of all the original spans from MIR that have been merged into this
7474
/// span. Mainly used to precisely skip over gaps when truncating a span.
75-
pub merged_spans: Vec<Span>,
76-
pub is_closure: bool,
75+
merged_spans: Vec<Span>,
76+
is_closure: bool,
7777
}
7878

7979
impl CoverageSpan {

0 commit comments

Comments
 (0)