From 88cee24c6c473be62ed84f35639949f7a343aab0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Mon, 15 Mar 2021 16:02:50 +0200 Subject: Enable thread-local coverage marks --- crates/ide_completion/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ide_completion') diff --git a/crates/ide_completion/Cargo.toml b/crates/ide_completion/Cargo.toml index 585ecca50..6bd8a5500 100644 --- a/crates/ide_completion/Cargo.toml +++ b/crates/ide_completion/Cargo.toml @@ -10,7 +10,7 @@ edition = "2018" doctest = false [dependencies] -cov-mark = "1.1" +cov-mark = { version = "1.1", features = ["thread-local"] } itertools = "0.10.0" log = "0.4.8" rustc-hash = "1.1.0" -- cgit v1.2.3 From e941cb0238dbaa8feed0dd94a815ff4668e1d60d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Mon, 15 Mar 2021 16:05:16 +0200 Subject: Drop non-working mark --- crates/ide_completion/src/context.rs | 2 -- 1 file changed, 2 deletions(-) (limited to 'crates/ide_completion') diff --git a/crates/ide_completion/src/context.rs b/crates/ide_completion/src/context.rs index 89e9bda78..e6cc6329c 100644 --- a/crates/ide_completion/src/context.rs +++ b/crates/ide_completion/src/context.rs @@ -350,7 +350,6 @@ impl<'a> CompletionContext<'a> { }, ast::IdentPat(it) => { cov_mark::hit!(expected_type_if_let_with_leading_char); - cov_mark::hit!(expected_type_if_let_without_leading_char); cov_mark::hit!(expected_type_match_arm_with_leading_char); let ty = self.sema.type_of_pat(&ast::Pat::from(it)); @@ -748,7 +747,6 @@ fn foo() { #[test] fn expected_type_if_let_without_leading_char() { - cov_mark::check!(expected_type_if_let_without_leading_char); check_expected_type_and_name( r#" enum Foo { Bar, Baz, Quux } -- cgit v1.2.3