We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76da2e4 commit 81f0e42Copy full SHA for 81f0e42
rust/ql/consistency-queries/ExtractionConsistency.ql
@@ -7,6 +7,10 @@
7
8
import codeql.rust.Diagnostics
9
10
-query predicate extractionError(ExtractionError ee) { any() }
+query predicate extractionError(ExtractionError ee) {
11
+ not exists(ee.getLocation()) or ee.getLocation().fromSource()
12
+}
13
-query predicate extractionWarning(ExtractionWarning ew) { any() }
14
+query predicate extractionWarning(ExtractionWarning ew) {
15
+ not exists(ew.getLocation()) or ew.getLocation().fromSource()
16
0 commit comments