Skip to content

Commit c6385ca

Browse files
committed
dbg
1 parent 063b590 commit c6385ca

File tree

3 files changed

+859
-368
lines changed

3 files changed

+859
-368
lines changed

rust/ql/lib/codeql/rust/elements/internal/OperationImpl.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ predicate isOverloaded(string op, int arity, string path, string method, int bor
8383
op = "<<=" and path = "core::ops::bit::ShlAssign" and method = "shl_assign" and borrows = 1
8484
or
8585
op = ">>=" and path = "core::ops::bit::ShrAssign" and method = "shr_assign" and borrows = 1
86+
or
87+
// Index operator
88+
op = "[]" and path = "core::ops::index::Index" and method = "index" and borrows = 1
8689
)
8790
}
8891

0 commit comments

Comments
 (0)