mirror of
https://github.com/github/codeql.git
synced 2026-04-19 14:04:09 +02:00
Rust: Clean up the test (it turns out a nested UnusedVariable.qlref is not needed) and accept consistency check changes.
This commit is contained in:
@@ -1,4 +1,2 @@
|
||||
extractionWarning
|
||||
| main.rs:512:5:512:28 | macro expansion failed: could not resolve macro 'undefined_macro_call' |
|
||||
| main.rs:516:5:516:28 | macro expansion failed: could not resolve macro 'undefined_macro_call' |
|
||||
| main.rs:522:13:522:36 | macro expansion failed: could not resolve macro 'undefined_macro_call' |
|
||||
| undefined_macros/main.rs:1:1:1:1 | semantic analyzer unavailable (not included as a module) |
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
query: queries/unusedentities/UnusedVariable.ql
|
||||
postprocess: utils/test/InlineExpectationsTestQuery.ql
|
||||
@@ -2,19 +2,19 @@
|
||||
// --- undefined macro calls ---
|
||||
|
||||
fn undefined_macros1() {
|
||||
let d: u16 = 4;
|
||||
let a: u16;
|
||||
|
||||
undefined_macro_call!(d);
|
||||
}
|
||||
|
||||
fn undefined_macros2() {
|
||||
{
|
||||
let a: u16 = 6; // $ MISSING: Alert[rust/unused-variable]
|
||||
let a: u16 = 1; // $ MISSING: Alert[rust/unused-value]
|
||||
}
|
||||
|
||||
undefined_macro_call!(5);
|
||||
|
||||
let b: u16 = 6; // $ MISSING: Alert[rust/unused-variable]
|
||||
let b: u16; // $ MISSING: Alert[rust/unused-variable]
|
||||
}
|
||||
|
||||
fn undefined_macros3() {
|
||||
|
||||
Reference in New Issue
Block a user