8029: Enable thread-local coverage marks r=JoshMcguigan a=lnicola



Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
This commit is contained in:
bors[bot] 2021-03-15 14:42:26 +00:00 committed by GitHub
commit 5f6d71cf0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 10 additions and 12 deletions

View File

@ -10,7 +10,7 @@ edition = "2018"
doctest = false
[dependencies]
cov-mark = "1.1"
cov-mark = { version = "1.1", features = ["thread-local"] }
log = "0.4.8"
once_cell = "1.3.1"
rustc-hash = "1.1.0"

View File

@ -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"
arrayvec = "0.5.1"
smallvec = "1.2.0"
@ -31,7 +31,7 @@ profile = { path = "../profile", version = "0.0.0" }
syntax = { path = "../syntax", version = "0.0.0" }
[dev-dependencies]
test_utils = { path = "../test_utils" }
test_utils = { path = "../test_utils" }
expect-test = "1.1"
tracing = "0.1"
tracing-subscriber = { version = "0.2", default-features = false, features = ["env-filter", "registry"] }

View File

@ -10,7 +10,7 @@ edition = "2018"
doctest = false
[dependencies]
cov-mark = "1.1"
cov-mark = { version = "1.1", features = ["thread-local"] }
either = "1.5.3"
indexmap = "1.4.0"
itertools = "0.10.0"

View File

@ -10,7 +10,7 @@ edition = "2018"
doctest = false
[dependencies]
cov-mark = "1.1"
cov-mark = { version = "1.1", features = ["thread-local"] }
rustc-hash = "1.1.0"
itertools = "0.10.0"
either = "1.6.1"

View File

@ -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"

View File

@ -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 }

View File

@ -10,7 +10,7 @@ edition = "2018"
doctest = false
[dependencies]
cov-mark = "1.1"
cov-mark = { version = "1.1", features = ["thread-local"] }
log = "0.4.8"
rayon = "1.5.0"
fst = { version = "0.4", default-features = false }

View File

@ -11,7 +11,7 @@ edition = "2018"
doctest = false
[dependencies]
cov-mark = "1.1"
cov-mark = { version = "1.1", features = ["thread-local"] }
rustc-hash = "1.1.0"
itertools = "0.10.0"

View File

@ -10,7 +10,7 @@ edition = "2018"
doctest = false
[dependencies]
cov-mark = "1.1"
cov-mark = { version = "1.1", features = ["thread-local"] }
rustc-hash = "1.1.0"
smallvec = "1.2.0"
log = "0.4.8"

View File

@ -11,7 +11,7 @@ edition = "2018"
doctest = false
[dependencies]
cov-mark = "1.1"
cov-mark = { version = "1.1", features = ["thread-local"] }
itertools = "0.10.0"
rowan = "0.12.2"
rustc_lexer = { version = "710.0.0", package = "rustc-ap-rustc_lexer" }