diff options
author | Aleksey Kladov <[email protected]> | 2021-06-12 21:39:57 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2021-06-12 21:40:52 +0100 |
commit | 0463d76a1f7370ea113bbf252281402fabc2a02b (patch) | |
tree | 2898cf11df836457327495133e249f7fe6f7df5c /crates/hir_ty | |
parent | 124123a53bfbd32be5d63315885d2d5c9e3a1ee6 (diff) |
internal: cross-crate cov-marks
Diffstat (limited to 'crates/hir_ty')
-rw-r--r-- | crates/hir_ty/Cargo.toml | 2 | ||||
-rw-r--r-- | crates/hir_ty/src/diagnostics/decl_check.rs | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/crates/hir_ty/Cargo.toml b/crates/hir_ty/Cargo.toml index 4b714c6d8..a1894e8d8 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 = { version = "1.1", features = ["thread-local"] } | 13 | cov-mark = "2.0.0-pre.1" |
14 | itertools = "0.10.0" | 14 | itertools = "0.10.0" |
15 | arrayvec = "0.7" | 15 | arrayvec = "0.7" |
16 | smallvec = "1.2.0" | 16 | smallvec = "1.2.0" |
diff --git a/crates/hir_ty/src/diagnostics/decl_check.rs b/crates/hir_ty/src/diagnostics/decl_check.rs index ca452e879..f26150b77 100644 --- a/crates/hir_ty/src/diagnostics/decl_check.rs +++ b/crates/hir_ty/src/diagnostics/decl_check.rs | |||
@@ -116,6 +116,7 @@ impl<'a> DeclValidator<'a> { | |||
116 | fn validate_func(&mut self, func: FunctionId) { | 116 | fn validate_func(&mut self, func: FunctionId) { |
117 | let data = self.db.function_data(func); | 117 | let data = self.db.function_data(func); |
118 | if data.is_in_extern_block() { | 118 | if data.is_in_extern_block() { |
119 | cov_mark::hit!(extern_func_incorrect_case_ignored); | ||
119 | return; | 120 | return; |
120 | } | 121 | } |
121 | 122 | ||
@@ -572,6 +573,7 @@ impl<'a> DeclValidator<'a> { | |||
572 | fn validate_static(&mut self, static_id: StaticId) { | 573 | fn validate_static(&mut self, static_id: StaticId) { |
573 | let data = self.db.static_data(static_id); | 574 | let data = self.db.static_data(static_id); |
574 | if data.is_extern { | 575 | if data.is_extern { |
576 | cov_mark::hit!(extern_static_incorrect_case_ignored); | ||
575 | return; | 577 | return; |
576 | } | 578 | } |
577 | 579 | ||