aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_completion
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-03-15 14:42:26 +0000
committerGitHub <[email protected]>2021-03-15 14:42:26 +0000
commit5f6d71cf0c41ac063bdb35dffe7ec713b1dbac42 (patch)
tree98571a3f6053d8cc0bc19087da13db7749da2892 /crates/ide_completion
parent633637b8bac778fb16b974674c3d87debdd1a8ef (diff)
parente941cb0238dbaa8feed0dd94a815ff4668e1d60d (diff)
Merge #8029
8029: Enable thread-local coverage marks r=JoshMcguigan a=lnicola Co-authored-by: LaurenČ›iu Nicola <[email protected]>
Diffstat (limited to 'crates/ide_completion')
-rw-r--r--crates/ide_completion/Cargo.toml2
-rw-r--r--crates/ide_completion/src/context.rs2
2 files changed, 1 insertions, 3 deletions
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"
10doctest = false 10doctest = false
11 11
12[dependencies] 12[dependencies]
13cov-mark = "1.1" 13cov-mark = { version = "1.1", features = ["thread-local"] }
14itertools = "0.10.0" 14itertools = "0.10.0"
15log = "0.4.8" 15log = "0.4.8"
16rustc-hash = "1.1.0" 16rustc-hash = "1.1.0"
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> {
350 }, 350 },
351 ast::IdentPat(it) => { 351 ast::IdentPat(it) => {
352 cov_mark::hit!(expected_type_if_let_with_leading_char); 352 cov_mark::hit!(expected_type_if_let_with_leading_char);
353 cov_mark::hit!(expected_type_if_let_without_leading_char);
354 cov_mark::hit!(expected_type_match_arm_with_leading_char); 353 cov_mark::hit!(expected_type_match_arm_with_leading_char);
355 let ty = self.sema.type_of_pat(&ast::Pat::from(it)); 354 let ty = self.sema.type_of_pat(&ast::Pat::from(it));
356 355
@@ -748,7 +747,6 @@ fn foo() {
748 747
749 #[test] 748 #[test]
750 fn expected_type_if_let_without_leading_char() { 749 fn expected_type_if_let_without_leading_char() {
751 cov_mark::check!(expected_type_if_let_without_leading_char);
752 check_expected_type_and_name( 750 check_expected_type_and_name(
753 r#" 751 r#"
754enum Foo { Bar, Baz, Quux } 752enum Foo { Bar, Baz, Quux }