Skip to content

Commit f9d0145

Browse files
committed
TY: Do not store trait impls RsImplIndex.InherentImpls
There are 2 spearate indexes for inherent and trait impls. Only store trait impls in RsImplIndex.TraitImpls instead of also storing it in RsImplIndex.InherentImpls.
1 parent 6b4526a commit f9d0145

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/org/rust/lang/core/resolve/indexes/RsImplIndex.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ object RsImplIndex {
101101
fun index(stub: RsImplItemStub, sink: IndexSink) {
102102
val type = stub.psi.typeReference ?: return
103103
val key = RustTypeFingerprint.create(type)
104-
if (key != null) {
104+
if (stub.psi.traitRef == null && key != null) {
105105
sink.occurrence(KEY, key)
106106
}
107107
}

0 commit comments

Comments
 (0)