Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions rust/ql/lib/codeql/rust/internal/CachedStages.qll
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ module Stages {
predicate backref() {
1 = 1
or
exists(Type t)
(exists(Type t) implies any())
or
exists(inferType(_))
(exists(inferType(_)) implies any())
}
}

Expand Down
6 changes: 3 additions & 3 deletions rust/ql/lib/codeql/rust/internal/typeinference/Type.qll
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ class PtrConstType extends PtrType {

/**
* A special pseudo type used to indicate that the actual type may have to be
* inferred by propagating type information back into call arguments.
* inferred by propagating type information top-down.
*
* For example, in
*
Expand All @@ -374,8 +374,8 @@ class PtrConstType extends PtrType {
* parameter of `Vec`.
*
* Unknown types are used to restrict when type information is allowed to flow
* into call arguments (including method call receivers), in order to avoid
* combinatorial explosions.
* top-down (including method call receivers), in order to avoid combinatorial
* explosions.
*/
class UnknownType extends Type, TUnknownType {
override TypeParameter getPositionalTypeParameter(int i) { none() }
Expand Down
Loading
Loading