Skip to content

Commit 114db99

Browse files
committed
Rust: Remove mistakenly included inherited associated types
1 parent dc3b7aa commit 114db99

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
@@ -3770,12 +3770,12 @@ private module ForIterableSatisfiesConstraintInput implements
37703770

37713771
pragma[nomagic]
37723772
private AssociatedTypeTypeParameter getIteratorItemTypeParameter() {
3773-
result.getTypeAlias() = any(IteratorTrait t).getItemType()
3773+
result = getAssociatedTypeTypeParameter(any(IteratorTrait t).getItemType())
37743774
}
37753775

37763776
pragma[nomagic]
37773777
private AssociatedTypeTypeParameter getIntoIteratorItemTypeParameter() {
3778-
result.getTypeAlias() = any(IntoIteratorTrait t).getItemType()
3778+
result = getAssociatedTypeTypeParameter(any(IntoIteratorTrait t).getItemType())
37793779
}
37803780

37813781
pragma[nomagic]

0 commit comments

Comments
 (0)