We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c7b1973 + 8bf4ece commit 8b8eac5Copy full SHA for 8b8eac5
crates/hir_def/src/body/tests/block.rs
@@ -348,6 +348,7 @@ fn foo() {
348
#[test]
349
fn is_visible_from_same_def_map() {
350
// Regression test for https://github.com/rust-analyzer/rust-analyzer/issues/9481
351
+ cov_mark::check!(is_visible_from_same_block_def_map);
352
check_at(
353
r#"
354
fn outer() {
crates/hir_def/src/visibility.rs
@@ -139,6 +139,7 @@ impl Visibility {
139
let arc;
140
let to_module_def_map =
141
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);
143
def_map
144
} else {
145
arc = to_module.def_map(db);
0 commit comments