mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Add cov_mark
This commit is contained in:
parent
dd69d4a97c
commit
a7d61ddba4
2 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue