mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
invert if
This commit is contained in:
parent
cf821cc332
commit
07de8ea165
1 changed files with 3 additions and 3 deletions
|
@ -159,10 +159,10 @@ impl PerNs {
|
|||
AdtId::UnionId(_) => PerNs::types(def, v),
|
||||
AdtId::EnumId(_) => PerNs::types(def, v),
|
||||
AdtId::StructId(_) => {
|
||||
if !has_constructor {
|
||||
PerNs::types(def, v)
|
||||
} else {
|
||||
if has_constructor {
|
||||
PerNs::both(def, def, v)
|
||||
} else {
|
||||
PerNs::types(def, v)
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue