Skip to content

Commit 7d34f6e

Browse files
authored
Merge pull request #21204 from paldepind/rust/assoc-tp-fix
Rust: Remove mistakenly included inherited associated types
2 parents 8ce2618 + 114db99 commit 7d34f6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rust/ql/lib/codeql/rust/internal/typeinference/TypeInference.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3811,12 +3811,12 @@ private module ForIterableSatisfiesConstraintInput implements
38113811

38123812
pragma[nomagic]
38133813
private AssociatedTypeTypeParameter getIteratorItemTypeParameter() {
3814-
result.getTypeAlias() = any(IteratorTrait t).getItemType()
3814+
result = getAssociatedTypeTypeParameter(any(IteratorTrait t).getItemType())
38153815
}
38163816

38173817
pragma[nomagic]
38183818
private AssociatedTypeTypeParameter getIntoIteratorItemTypeParameter() {
3819-
result.getTypeAlias() = any(IntoIteratorTrait t).getItemType()
3819+
result = getAssociatedTypeTypeParameter(any(IntoIteratorTrait t).getItemType())
38203820
}
38213821

38223822
pragma[nomagic]

0 commit comments

Comments
 (0)