]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #33313 - birkenfeld:depgraph-panic, r=nikomatsakis
authorSteve Klabnik <steve@steveklabnik.com>
Sat, 7 May 2016 19:35:16 +0000 (15:35 -0400)
committerSteve Klabnik <steve@steveklabnik.com>
Sat, 7 May 2016 19:35:16 +0000 (15:35 -0400)
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.


Trivial merge