diff options
| author | Georg Brandl <georg@python.org> | 2016-05-01 19:23:29 +0200 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2016-05-01 19:33:58 +0200 |
| commit | e3f13129b42354ca9cc408df084796f0404c30a9 (patch) | |
| tree | f70e8f9fcf6f9b94e3a14471326d6f71bb2c2c32 /src/rustllvm/RustWrapper.cpp | |
| parent | 2a815a26c8ce70e1aede585827c020d9775a8faf (diff) | |
| download | rust-e3f13129b42354ca9cc408df084796f0404c30a9.tar.gz rust-e3f13129b42354ca9cc408df084796f0404c30a9.zip | |
dep_graph: avoid panicking in thread when channel closed
On my system, when the processor is already loaded, and I try to run the test suite, e.g. compile-fail/dep-graph-assoc-type-trans.rs fails because of undecodable JSON. Running the compiler manually, I can see that the dep graph thread panics (and puts non-JSON on stderr) while `send`ing on `swap_out`, presumably because the other end has already quit. I think that in this case, we can just gracefully exit the thread.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
