diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-03-15 14:42:26 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-03-15 14:42:26 +0000 |
commit | 5f6d71cf0c41ac063bdb35dffe7ec713b1dbac42 (patch) | |
tree | 98571a3f6053d8cc0bc19087da13db7749da2892 | |
parent | 633637b8bac778fb16b974674c3d87debdd1a8ef (diff) | |
parent | e941cb0238dbaa8feed0dd94a815ff4668e1d60d (diff) |
Merge #8029
8029: Enable thread-local coverage marks r=JoshMcguigan a=lnicola
Co-authored-by: Laurențiu Nicola <[email protected]>
-rw-r--r-- | crates/hir_def/Cargo.toml | 2 | ||||
-rw-r--r-- | crates/hir_ty/Cargo.toml | 4 | ||||
-rw-r--r-- | crates/ide/Cargo.toml | 2 | ||||
-rw-r--r-- | crates/ide_assists/Cargo.toml | 2 | ||||
-rw-r--r-- | crates/ide_completion/Cargo.toml | 2 | ||||
-rw-r--r-- | crates/ide_completion/src/context.rs | 2 | ||||
-rw-r--r-- | crates/ide_db/Cargo.toml | 2 | ||||
-rw-r--r-- | crates/ide_ssr/Cargo.toml | 2 | ||||
-rw-r--r-- | crates/mbe/Cargo.toml | 2 | ||||
-rw-r--r-- | crates/syntax/Cargo.toml | 2 |
10 files changed, 10 insertions, 12 deletions
diff --git a/crates/hir_def/Cargo.toml b/crates/hir_def/Cargo.toml index c2d99280f..475d337f3 100644 --- a/crates/hir_def/Cargo.toml +++ b/crates/hir_def/Cargo.toml | |||
@@ -10,7 +10,7 @@ edition = "2018" | |||
10 | doctest = false | 10 | doctest = false |
11 | 11 | ||
12 | [dependencies] | 12 | [dependencies] |
13 | cov-mark = "1.1" | 13 | cov-mark = { version = "1.1", features = ["thread-local"] } |
14 | log = "0.4.8" | 14 | log = "0.4.8" |
15 | once_cell = "1.3.1" | 15 | once_cell = "1.3.1" |
16 | rustc-hash = "1.1.0" | 16 | rustc-hash = "1.1.0" |
diff --git a/crates/hir_ty/Cargo.toml b/crates/hir_ty/Cargo.toml index b9c93f56f..0ef27cd37 100644 --- a/crates/hir_ty/Cargo.toml +++ b/crates/hir_ty/Cargo.toml | |||
@@ -10,7 +10,7 @@ edition = "2018" | |||
10 | doctest = false | 10 | doctest = false |
11 | 11 | ||
12 | [dependencies] | 12 | [dependencies] |
13 | cov-mark = "1.1" | 13 | cov-mark = { version = "1.1", features = ["thread-local"] } |
14 | itertools = "0.10.0" | 14 | itertools = "0.10.0" |
15 | arrayvec = "0.5.1" | 15 | arrayvec = "0.5.1" |
16 | smallvec = "1.2.0" | 16 | smallvec = "1.2.0" |
@@ -31,7 +31,7 @@ profile = { path = "../profile", version = "0.0.0" } | |||
31 | syntax = { path = "../syntax", version = "0.0.0" } | 31 | syntax = { path = "../syntax", version = "0.0.0" } |
32 | 32 | ||
33 | [dev-dependencies] | 33 | [dev-dependencies] |
34 | test_utils = { path = "../test_utils" } | 34 | test_utils = { path = "../test_utils" } |
35 | expect-test = "1.1" | 35 | expect-test = "1.1" |
36 | tracing = "0.1" | 36 | tracing = "0.1" |
37 | tracing-subscriber = { version = "0.2", default-features = false, features = ["env-filter", "registry"] } | 37 | tracing-subscriber = { version = "0.2", default-features = false, features = ["env-filter", "registry"] } |
diff --git a/crates/ide/Cargo.toml b/crates/ide/Cargo.toml index 6ae7c9e6c..f04bcf531 100644 --- a/crates/ide/Cargo.toml +++ b/crates/ide/Cargo.toml | |||
@@ -10,7 +10,7 @@ edition = "2018" | |||
10 | doctest = false | 10 | doctest = false |
11 | 11 | ||
12 | [dependencies] | 12 | [dependencies] |
13 | cov-mark = "1.1" | 13 | cov-mark = { version = "1.1", features = ["thread-local"] } |
14 | either = "1.5.3" | 14 | either = "1.5.3" |
15 | indexmap = "1.4.0" | 15 | indexmap = "1.4.0" |
16 | itertools = "0.10.0" | 16 | itertools = "0.10.0" |
diff --git a/crates/ide_assists/Cargo.toml b/crates/ide_assists/Cargo.toml index dd9aa27c6..a83acb191 100644 --- a/crates/ide_assists/Cargo.toml +++ b/crates/ide_assists/Cargo.toml | |||
@@ -10,7 +10,7 @@ edition = "2018" | |||
10 | doctest = false | 10 | doctest = false |
11 | 11 | ||
12 | [dependencies] | 12 | [dependencies] |
13 | cov-mark = "1.1" | 13 | cov-mark = { version = "1.1", features = ["thread-local"] } |
14 | rustc-hash = "1.1.0" | 14 | rustc-hash = "1.1.0" |
15 | itertools = "0.10.0" | 15 | itertools = "0.10.0" |
16 | either = "1.6.1" | 16 | either = "1.6.1" |
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" | |||
10 | doctest = false | 10 | doctest = false |
11 | 11 | ||
12 | [dependencies] | 12 | [dependencies] |
13 | cov-mark = "1.1" | 13 | cov-mark = { version = "1.1", features = ["thread-local"] } |
14 | itertools = "0.10.0" | 14 | itertools = "0.10.0" |
15 | log = "0.4.8" | 15 | log = "0.4.8" |
16 | rustc-hash = "1.1.0" | 16 | rustc-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#" |
754 | enum Foo { Bar, Baz, Quux } | 752 | enum Foo { Bar, Baz, Quux } |
diff --git a/crates/ide_db/Cargo.toml b/crates/ide_db/Cargo.toml index 1f7a90d20..6229996ec 100644 --- a/crates/ide_db/Cargo.toml +++ b/crates/ide_db/Cargo.toml | |||
@@ -10,7 +10,7 @@ edition = "2018" | |||
10 | doctest = false | 10 | doctest = false |
11 | 11 | ||
12 | [dependencies] | 12 | [dependencies] |
13 | cov-mark = "1.1" | 13 | cov-mark = { version = "1.1", features = ["thread-local"] } |
14 | log = "0.4.8" | 14 | log = "0.4.8" |
15 | rayon = "1.5.0" | 15 | rayon = "1.5.0" |
16 | fst = { version = "0.4", default-features = false } | 16 | fst = { version = "0.4", default-features = false } |
diff --git a/crates/ide_ssr/Cargo.toml b/crates/ide_ssr/Cargo.toml index 8c31df13a..5d2221ebc 100644 --- a/crates/ide_ssr/Cargo.toml +++ b/crates/ide_ssr/Cargo.toml | |||
@@ -11,7 +11,7 @@ edition = "2018" | |||
11 | doctest = false | 11 | doctest = false |
12 | 12 | ||
13 | [dependencies] | 13 | [dependencies] |
14 | cov-mark = "1.1" | 14 | cov-mark = { version = "1.1", features = ["thread-local"] } |
15 | rustc-hash = "1.1.0" | 15 | rustc-hash = "1.1.0" |
16 | itertools = "0.10.0" | 16 | itertools = "0.10.0" |
17 | 17 | ||
diff --git a/crates/mbe/Cargo.toml b/crates/mbe/Cargo.toml index 139214207..8856787c0 100644 --- a/crates/mbe/Cargo.toml +++ b/crates/mbe/Cargo.toml | |||
@@ -10,7 +10,7 @@ edition = "2018" | |||
10 | doctest = false | 10 | doctest = false |
11 | 11 | ||
12 | [dependencies] | 12 | [dependencies] |
13 | cov-mark = "1.1" | 13 | cov-mark = { version = "1.1", features = ["thread-local"] } |
14 | rustc-hash = "1.1.0" | 14 | rustc-hash = "1.1.0" |
15 | smallvec = "1.2.0" | 15 | smallvec = "1.2.0" |
16 | log = "0.4.8" | 16 | log = "0.4.8" |
diff --git a/crates/syntax/Cargo.toml b/crates/syntax/Cargo.toml index 05fca5dc4..c0fd894b0 100644 --- a/crates/syntax/Cargo.toml +++ b/crates/syntax/Cargo.toml | |||
@@ -11,7 +11,7 @@ edition = "2018" | |||
11 | doctest = false | 11 | doctest = false |
12 | 12 | ||
13 | [dependencies] | 13 | [dependencies] |
14 | cov-mark = "1.1" | 14 | cov-mark = { version = "1.1", features = ["thread-local"] } |
15 | itertools = "0.10.0" | 15 | itertools = "0.10.0" |
16 | rowan = "0.12.2" | 16 | rowan = "0.12.2" |
17 | rustc_lexer = { version = "710.0.0", package = "rustc-ap-rustc_lexer" } | 17 | rustc_lexer = { version = "710.0.0", package = "rustc-ap-rustc_lexer" } |