Add cov_mark
This commit is contained in:
parent
dd69d4a97c
commit
a7d61ddba4
@ -4137,6 +4137,7 @@ pub fn foo() {}
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn hover_attr_path_qualifier() {
|
fn hover_attr_path_qualifier() {
|
||||||
|
cov_mark::check!(name_ref_classify_attr_path_qualifier);
|
||||||
check(
|
check(
|
||||||
r#"
|
r#"
|
||||||
//- /foo.rs crate:foo
|
//- /foo.rs crate:foo
|
||||||
|
@ -395,6 +395,7 @@ impl NameRefClass {
|
|||||||
// Don't wanna collide with builtin attributes here like `test` hence guard
|
// Don't wanna collide with builtin attributes here like `test` hence guard
|
||||||
// so only resolve to modules that aren't the last segment
|
// so only resolve to modules that aren't the last segment
|
||||||
PathResolution::Def(module @ ModuleDef::Module(_)) if path != top_path => {
|
PathResolution::Def(module @ ModuleDef::Module(_)) if path != top_path => {
|
||||||
|
cov_mark::hit!(name_ref_classify_attr_path_qualifier);
|
||||||
Some(NameRefClass::Definition(Definition::ModuleDef(module)))
|
Some(NameRefClass::Definition(Definition::ModuleDef(module)))
|
||||||
}
|
}
|
||||||
PathResolution::Macro(mac) if mac.kind() == hir::MacroKind::Attr => {
|
PathResolution::Macro(mac) if mac.kind() == hir::MacroKind::Attr => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user