We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bfa37b8 commit 31b184aCopy full SHA for 31b184a
1 file changed
rust/ql/src/queries/telemetry/DatabaseQuality.qll
@@ -8,6 +8,7 @@ import rust
8
import codeql.util.ReportStats
9
import codeql.rust.elements.internal.CallExprImpl::Impl as CallExprImpl
10
import codeql.rust.internal.TypeInference as TypeInference
11
+import codeql.rust.internal.Type
12
13
/**
14
* A file that is included in the quality statistics.
@@ -30,7 +31,8 @@ module CallTargetStats implements StatsSig {
30
31
RelevantInvocationExpr() {
32
this.getFile() instanceof RelevantFile and
33
not this instanceof CallExprImpl::DynamicCallExpr and
- not this = any(Operation o | not o.isOverloaded(_, _, _))
34
+ not this = any(Operation o | not o.isOverloaded(_, _, _)) and
35
+ not this = any(DerefExpr de | TypeInference::inferType(de.getExpr()) instanceof PtrType)
36
}
37
38
0 commit comments