File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -94,15 +94,16 @@ fn main() {
94
94
let quit_on_rmeta = opts. rustc_quit_on_rmeta ;
95
95
// Process json rustc output and kill the subprocess when we get a signal
96
96
// that we emitted a metadata file.
97
- let mut metadata_emitted = false ;
97
+ let mut me = false ;
98
+ let metadata_emitted = & mut me;
98
99
let result = process_output ( & mut child_stderr, stderr. as_mut ( ) , move |line| {
99
100
if quit_on_rmeta {
100
- rustc:: stop_on_rmeta_completion ( line, format, & mut metadata_emitted)
101
+ rustc:: stop_on_rmeta_completion ( line, format, metadata_emitted)
101
102
} else {
102
103
rustc:: process_json ( line, format)
103
104
}
104
105
} ) ;
105
- if metadata_emitted {
106
+ if me {
106
107
// If recv returns Ok(), a signal was sent in this channel so we should terminate the child process.
107
108
// We can safely ignore the Result from kill() as we don't care if the process already terminated.
108
109
let _ = child. kill ( ) ;
You can’t perform that action at this time.
0 commit comments