File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
compiler/rustc_codegen_ssa/src/back Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1957,10 +1957,13 @@ impl<B: ExtraBackendMethods> Drop for Coordinator<B> {
19571957pub struct OngoingCodegen < B : ExtraBackendMethods > {
19581958 pub backend : B ,
19591959 pub crate_info : CrateInfo ,
1960- pub codegen_worker_receive : Receiver < CguMessage > ,
1961- pub shared_emitter_main : SharedEmitterMain ,
19621960 pub output_filenames : Arc < OutputFilenames > ,
1961+ // Field order below is intended to terminate the coordinator thread before two fields below
1962+ // drop and prematurely close channels used by coordinator thread. See `Coordinator`'s
1963+ // `Drop` implementation for more info.
19631964 pub coordinator : Coordinator < B > ,
1965+ pub codegen_worker_receive : Receiver < CguMessage > ,
1966+ pub shared_emitter_main : SharedEmitterMain ,
19641967}
19651968
19661969impl < B : ExtraBackendMethods > OngoingCodegen < B > {
You can’t perform that action at this time.
0 commit comments