mirror of
https://github.com/github/codeql.git
synced 2026-06-03 12:50:16 +02:00
Rust: Undo hiding some warnings in the extraction consistency check query.
This commit is contained in:
@@ -12,7 +12,5 @@ query predicate extractionError(ExtractionError ee) {
|
||||
}
|
||||
|
||||
query predicate extractionWarning(ExtractionWarning ew) {
|
||||
(not exists(ew.getLocation()) or ew.getLocation().fromSource()) and
|
||||
// macro expansion failures are expected for macros like compile_error! and panic!
|
||||
not ew.getMessage().matches("macro expansion failed for%")
|
||||
(not exists(ew.getLocation()) or ew.getLocation().fromSource())
|
||||
}
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
extractionWarning
|
||||
| macro_expansion.rs:56:9:56:31 | macro expansion failed for 'concat' |
|
||||
|
||||
@@ -5,3 +5,4 @@ extractionWarning
|
||||
| does_not_compile.rs:2:21:2:20 | expected SEMICOLON |
|
||||
| does_not_compile.rs:2:26:2:25 | expected SEMICOLON |
|
||||
| error.rs:2:5:2:17 | An error! |
|
||||
| my_macro.rs:17:9:17:27 | macro expansion failed for 'myUndefinedMacro' |
|
||||
|
||||
Reference in New Issue
Block a user