diff --git a/compiler/rustc_codegen_ssa/src/back/write.rs b/compiler/rustc_codegen_ssa/src/back/write.rs index 72a96e67f6e6..5601a950fbdb 100644 --- a/compiler/rustc_codegen_ssa/src/back/write.rs +++ b/compiler/rustc_codegen_ssa/src/back/write.rs @@ -2128,14 +2128,14 @@ fn drop(&mut self) { } pub struct OngoingCodegen { - pub backend: B, - pub output_filenames: Arc, + backend: B, + output_filenames: Arc, // 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, - pub codegen_worker_receive: Receiver, - pub shared_emitter_main: SharedEmitterMain, + pub(crate) coordinator: Coordinator, + codegen_worker_receive: Receiver, + shared_emitter_main: SharedEmitterMain, } impl OngoingCodegen {