Commit 70598e9
Rust: Add extractor test for cfg exclusion in macro expansions
Regression test for `should_be_excluded`: items produced by a macro
expansion carrying a disabled `#[cfg(...)]` must be excluded from
extraction, just like disabled items written directly in a source file.
Uses `cfg(any())`/`cfg(all())` so the test does not depend on crate features.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 4ee033fb-30ad-4617-9922-bc0f1088ba811 parent dc90b3a commit 70598e9
4 files changed
Lines changed: 37 additions & 0 deletions
File tree
- rust/ql/test/extractor-tests/macro-expansion-cfg
Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
0 commit comments