From b8cae2cf8f7d2a0162d614e25ef95d7e4a5d3677 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 12 Jun 2019 18:05:02 +0300 Subject: check for cancellation when executing queries Note that we can't just remove CheckCanceled trait altogether: sometimes it's useful to check for cancellation while the query is running! We do this, for example, in the name resolution fixed-point loop. --- crates/ra_hir/src/ty/traits.rs | 1 - 1 file changed, 1 deletion(-) (limited to 'crates/ra_hir/src/ty/traits.rs') diff --git a/crates/ra_hir/src/ty/traits.rs b/crates/ra_hir/src/ty/traits.rs index db78f25ca..fda7f9c04 100644 --- a/crates/ra_hir/src/ty/traits.rs +++ b/crates/ra_hir/src/ty/traits.rs @@ -83,7 +83,6 @@ pub(crate) fn implements_query( krate: Crate, trait_ref: Canonical, ) -> Option { - db.check_canceled(); let _p = profile("implements_query"); let goal: chalk_ir::Goal = trait_ref.value.to_chalk(db).cast(); debug!("goal: {:?}", goal); -- cgit v1.2.3