mirror of
https://github.com/github/codeql.git
synced 2026-04-26 09:15:12 +02:00
Rust: Re-enable special casing in indexing for Vec
This commit is contained in:
@@ -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 |
|
||||
|
||||
Reference in New Issue
Block a user