about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2023-12-28 14:49:16 +1100
committerZalathar <Zalathar@users.noreply.github.com>2024-01-05 12:53:23 +1100
commit514e026853fcd426528cc23a7768d0e43f05ce7c (patch)
treee7104183da19b44157b37b0cc2170d5c781c4df6 /compiler/rustc_mir_transform
parentcd5084388a8e7cbecdea90f071ec0bb5be7c3ee8 (diff)
downloadrust-514e026853fcd426528cc23a7768d0e43f05ce7c.tar.gz
rust-514e026853fcd426528cc23a7768d0e43f05ce7c.zip
coverage: Make the remaining fields of `CoverageSpan` non-public
The struct itself is already non-public, so having public fields doesn't
achieve anything.
Diffstat (limited to 'compiler/rustc_mir_transform')
-rw-r--r--compiler/rustc_mir_transform/src/coverage/spans.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/rustc_mir_transform/src/coverage/spans.rs b/compiler/rustc_mir_transform/src/coverage/spans.rs
index 6604e13398f..5983189984d 100644
--- a/compiler/rustc_mir_transform/src/coverage/spans.rs
+++ b/compiler/rustc_mir_transform/src/coverage/spans.rs
@@ -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 {