Reduce visibility of OngoingCodegen fields

This commit is contained in:
bjorn3
2026-04-09 10:58:59 +00:00
parent 25a84cfd6d
commit 9e4bb84904
+5 -5
View File
@@ -2128,14 +2128,14 @@ fn drop(&mut self) {
}
pub struct OngoingCodegen<B: WriteBackendMethods> {
pub backend: B,
pub output_filenames: Arc<OutputFilenames>,
backend: B,
output_filenames: Arc<OutputFilenames>,
// Field order below is intended to terminate the coordinator thread before two fields below
// drop and prematurely close channels used by coordinator thread. See `Coordinator`'s
// `Drop` implementation for more info.
pub coordinator: Coordinator<B>,
pub codegen_worker_receive: Receiver<CguMessage>,
pub shared_emitter_main: SharedEmitterMain,
pub(crate) coordinator: Coordinator<B>,
codegen_worker_receive: Receiver<CguMessage>,
shared_emitter_main: SharedEmitterMain,
}
impl<B: WriteBackendMethods> OngoingCodegen<B> {