]> git.lizzy.rs Git - rust.git/commit
internal: ensure that runaway type-inference doesn't block the main loop
authorAleksey Kladov <aleksey.kladov@gmail.com>
Mon, 29 Mar 2021 20:15:12 +0000 (23:15 +0300)
committerAleksey Kladov <aleksey.kladov@gmail.com>
Mon, 29 Mar 2021 20:15:12 +0000 (23:15 +0300)
commitb35312d4af305e86e360235150cddc263d4adc4a
tree76d3d06c68364681c5445caaf74628331704afcc
parent2381a54c2f6ff1d97b9d6cb982dde5644f09a396
internal: ensure that runaway type-inference doesn't block the main loop

We have a bug where type-checking `per_query_memory_usage` takes a
couple of seconds. It also reveals another bug: our type inference is
not cancellable.
crates/hir_ty/src/infer/expr.rs