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