diff --git a/rust/ql/lib/codeql/rust/internal/PathResolution.qll b/rust/ql/lib/codeql/rust/internal/PathResolution.qll index 354cab5a6de9..26eb0bc2d9ee 100644 --- a/rust/ql/lib/codeql/rust/internal/PathResolution.qll +++ b/rust/ql/lib/codeql/rust/internal/PathResolution.qll @@ -615,7 +615,7 @@ class ImplItemNode extends ImplOrTraitItemNode instanceof Impl { if this.hasCanonicalPath(c2) then c1 = c2 else ( - c2 = c1.getADependency() or c1 = c2.getADependency() + c2 = c1.getADependency+() or c1 = c2.getADependency+() ) ) }