mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Rust: improve ExtractionConsistency.ql
This commit is contained in:
committed by
Tom Hvitved
parent
76da2e41f7
commit
81f0e4202a
@@ -7,6 +7,10 @@
|
||||
|
||||
import codeql.rust.Diagnostics
|
||||
|
||||
query predicate extractionError(ExtractionError ee) { any() }
|
||||
query predicate extractionError(ExtractionError ee) {
|
||||
not exists(ee.getLocation()) or ee.getLocation().fromSource()
|
||||
}
|
||||
|
||||
query predicate extractionWarning(ExtractionWarning ew) { any() }
|
||||
query predicate extractionWarning(ExtractionWarning ew) {
|
||||
not exists(ew.getLocation()) or ew.getLocation().fromSource()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user