mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-26 13:01:27 +03:00
Reduce visibility of OngoingCodegen fields
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user