File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -595,10 +595,11 @@ class ImplItemNode extends ImplOrTraitItemNode instanceof Impl {
595
595
exists ( TraitItemNode trait |
596
596
trait = this .resolveTraitTy ( ) and
597
597
trait .hasCanonicalPath ( c2 ) and
598
- if this .hasCanonicalPath ( c2 )
598
+ if trait .hasCanonicalPath ( c1 )
599
599
then c1 = c2
600
600
else (
601
- c2 = c1 .getADependency ( ) or c1 = c2 .getADependency ( )
601
+ c2 = c1 .getADependency ( ) or
602
+ c1 = c2 .getADependency ( )
602
603
)
603
604
)
604
605
}
Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ canonicalPath
29
29
| regular.rs:69:1:71:1 | fn is_number_or_letter | test::regular::is_number_or_letter |
30
30
| regular.rs:73:1:75:1 | trait Abs | test::regular::Abs |
31
31
| regular.rs:74:5:74:25 | fn abs | <_ as test::regular::Abs>::abs |
32
+ | regular.rs:77:1:85:1 | impl Abs for i32 { ... } | <core::i32 as test::regular::Abs> |
33
+ | regular.rs:78:5:84:5 | fn abs | <core::i32 as test::regular::Abs>::abs |
32
34
canonicalPaths
33
35
| anonymous.rs:1:1:1:26 | use ...::Trait | None | None |
34
36
| anonymous.rs:3:1:32:1 | fn canonicals | repo::test | crate::anonymous::canonicals |
You can’t perform that action at this time.
0 commit comments