Rust: Undo hiding some warnings in the extraction consistency check query.

This commit is contained in:
Geoffrey White
2026-06-02 16:36:01 +01:00
parent 63d8bb7d5b
commit 612b9237da
3 changed files with 4 additions and 3 deletions

View File

@@ -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())
}

View File

@@ -0,0 +1,2 @@
extractionWarning
| macro_expansion.rs:56:9:56:31 | macro expansion failed for 'concat' |

View File

@@ -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' |