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> {
1957
1957
pub struct OngoingCodegen < B : ExtraBackendMethods > {
1958
1958
pub backend : B ,
1959
1959
pub crate_info : CrateInfo ,
1960
- pub codegen_worker_receive : Receiver < CguMessage > ,
1961
- pub shared_emitter_main : SharedEmitterMain ,
1962
1960
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.
1963
1964
pub coordinator : Coordinator < B > ,
1965
+ pub codegen_worker_receive : Receiver < CguMessage > ,
1966
+ pub shared_emitter_main : SharedEmitterMain ,
1964
1967
}
1965
1968
1966
1969
impl < B : ExtraBackendMethods > OngoingCodegen < B > {
You can’t perform that action at this time.
0 commit comments