Check cancellation when updating imports recursively

For winapi, this takes a lot of CPU time without doing queries and
causes the main event loop to stall on cancellation.
This commit is contained in:
Aleksey Kladov 2020-07-15 15:49:20 +02:00
parent 760ee8173c
commit 8baa2b727d

View file

@ -573,6 +573,7 @@ impl DefCollector<'_> {
vis: Visibility,
import_type: ImportType,
) {
self.db.check_canceled();
self.update_recursive(module_id, resolutions, vis, import_type, 0)
}