Merge pull request #21204 from paldepind/rust/assoc-tp-fix

Rust: Remove mistakenly included inherited associated types
This commit is contained in:
Simon Friis Vindum
2026-01-22 13:46:09 +01:00
committed by GitHub

View File

@@ -3811,12 +3811,12 @@ private module ForIterableSatisfiesConstraintInput implements
pragma[nomagic]
private AssociatedTypeTypeParameter getIteratorItemTypeParameter() {
result.getTypeAlias() = any(IteratorTrait t).getItemType()
result = getAssociatedTypeTypeParameter(any(IteratorTrait t).getItemType())
}
pragma[nomagic]
private AssociatedTypeTypeParameter getIntoIteratorItemTypeParameter() {
result.getTypeAlias() = any(IntoIteratorTrait t).getItemType()
result = getAssociatedTypeTypeParameter(any(IntoIteratorTrait t).getItemType())
}
pragma[nomagic]