Rust: Re-enable special casing in indexing for Vec

This commit is contained in:
Simon Friis Vindum
2025-06-24 09:30:23 +02:00
parent 326c7de521
commit 153e91bebb

View File

@@ -1132,6 +1132,8 @@ private Type inferIndexExprType(IndexExpr ie, TypePath path) {
) and
result = inferType(ie.getBase(), exprPath)
|
exprPath.isCons(any(Vec v).getElementTypeParameter(), path)
or
exprPath.isCons(any(ArrayTypeParameter tp), path)
or
exists(TypePath path0 |