Skip to content

Commit 26919a6

Browse files
committed
Rust: Rename variable as suggested in review
1 parent e610465 commit 26919a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rust/ql/lib/codeql/rust/internal/TypeInference.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,9 @@ module Consistency {
229229
t = CertainTypeInference::inferCertainType(n, path) and
230230
// Suppress the inconsistency if `n` is a self parameter and the type
231231
// mention for the self type has multiple types for a path.
232-
not exists(ImplItemNode impl, TypePath path0 |
232+
not exists(ImplItemNode impl, TypePath selfTypePath |
233233
n = impl.getAnAssocItem().(Function).getParamList().getSelfParam() and
234-
strictcount(impl.(Impl).getSelfTy().(TypeMention).resolveTypeAt(path0)) > 1
234+
strictcount(impl.(Impl).getSelfTy().(TypeMention).resolveTypeAt(selfTypePath)) > 1
235235
)
236236
}
237237
}

0 commit comments

Comments
 (0)