Skip to content

Commit 8b8eac5

Browse files
Merge #9501
9501: internal: Add a coverage mark r=jonas-schievink a=jonas-schievink #9499 (comment) bors r+ Co-authored-by: Jonas Schievink <[email protected]>
2 parents c7b1973 + 8bf4ece commit 8b8eac5

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

crates/hir_def/src/body/tests/block.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@ fn foo() {
348348
#[test]
349349
fn is_visible_from_same_def_map() {
350350
// Regression test for https://github.com/rust-analyzer/rust-analyzer/issues/9481
351+
cov_mark::check!(is_visible_from_same_block_def_map);
351352
check_at(
352353
r#"
353354
fn outer() {

crates/hir_def/src/visibility.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ impl Visibility {
139139
let arc;
140140
let to_module_def_map =
141141
if to_module.krate == def_map.krate() && to_module.block == def_map.block_id() {
142+
cov_mark::hit!(is_visible_from_same_block_def_map);
142143
def_map
143144
} else {
144145
arc = to_module.def_map(db);

0 commit comments

Comments
 (0)