Skip to content

Commit 0463d76

Browse files
committed
internal: cross-crate cov-marks
1 parent 124123a commit 0463d76

File tree

12 files changed

+15
-12
lines changed

12 files changed

+15
-12
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/hir_def/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ edition = "2018"
1010
doctest = false
1111

1212
[dependencies]
13-
cov-mark = { version = "1.1", features = ["thread-local"] }
13+
cov-mark = "2.0.0-pre.1"
1414
dashmap = { version = "4.0.2", features = ["raw-api"] }
1515
log = "0.4.8"
1616
once_cell = "1.3.1"

crates/hir_ty/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ edition = "2018"
1010
doctest = false
1111

1212
[dependencies]
13-
cov-mark = { version = "1.1", features = ["thread-local"] }
13+
cov-mark = "2.0.0-pre.1"
1414
itertools = "0.10.0"
1515
arrayvec = "0.7"
1616
smallvec = "1.2.0"

crates/hir_ty/src/diagnostics/decl_check.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ impl<'a> DeclValidator<'a> {
116116
fn validate_func(&mut self, func: FunctionId) {
117117
let data = self.db.function_data(func);
118118
if data.is_in_extern_block() {
119+
cov_mark::hit!(extern_func_incorrect_case_ignored);
119120
return;
120121
}
121122

@@ -572,6 +573,7 @@ impl<'a> DeclValidator<'a> {
572573
fn validate_static(&mut self, static_id: StaticId) {
573574
let data = self.db.static_data(static_id);
574575
if data.is_extern {
576+
cov_mark::hit!(extern_static_incorrect_case_ignored);
575577
return;
576578
}
577579

crates/ide/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ edition = "2018"
1010
doctest = false
1111

1212
[dependencies]
13-
cov-mark = { version = "1.1", features = ["thread-local"] }
13+
cov-mark = "2.0.0-pre.1"
1414
either = "1.5.3"
1515
indexmap = "1.4.0"
1616
itertools = "0.10.0"
@@ -39,4 +39,3 @@ hir = { path = "../hir", version = "0.0.0" }
3939
[dev-dependencies]
4040
test_utils = { path = "../test_utils" }
4141
expect-test = "1.1"
42-
cov-mark = "1.1.0"

crates/ide/src/diagnostics.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2571,6 +2571,8 @@ trait BAD_TRAIT {
25712571

25722572
#[test]
25732573
fn ignores_extern_items() {
2574+
cov_mark::check!(extern_func_incorrect_case_ignored);
2575+
cov_mark::check!(extern_static_incorrect_case_ignored);
25742576
check_diagnostics(
25752577
r#"
25762578
extern {

crates/ide_assists/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ edition = "2018"
1010
doctest = false
1111

1212
[dependencies]
13-
cov-mark = { version = "1.1", features = ["thread-local"] }
13+
cov-mark = "2.0.0-pre.1"
1414
rustc-hash = "1.1.0"
1515
itertools = "0.10.0"
1616
either = "1.6.1"

crates/ide_completion/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ edition = "2018"
1010
doctest = false
1111

1212
[dependencies]
13-
cov-mark = { version = "1.1", features = ["thread-local"] }
13+
cov-mark = "2.0.0-pre.1"
1414
itertools = "0.10.0"
1515
log = "0.4.8"
1616
rustc-hash = "1.1.0"

crates/ide_db/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ edition = "2018"
1010
doctest = false
1111

1212
[dependencies]
13-
cov-mark = { version = "1.1", features = ["thread-local"] }
13+
cov-mark = "2.0.0-pre.1"
1414
log = "0.4.8"
1515
rayon = "1.5.0"
1616
fst = { version = "0.4", default-features = false }

crates/ide_ssr/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ edition = "2018"
1111
doctest = false
1212

1313
[dependencies]
14-
cov-mark = { version = "1.1", features = ["thread-local"] }
14+
cov-mark = "2.0.0-pre.1"
1515
rustc-hash = "1.1.0"
1616
itertools = "0.10.0"
1717

0 commit comments

Comments
 (0)