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 ca01008 commit ab81bd1Copy full SHA for ab81bd1
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