chore: catch unused snafu variants shadowed by other crates and remove them (#10826)

* chore: catch unused snafu variants shadowed by other crates and remove them

Signed-off-by: Dennis Zhuang <killme2008@gmail.com>

* fix: count shorthand variant constructions in error files as uses

Signed-off-by: Dennis Zhuang <killme2008@gmail.com>

* fix: parse nested expressions and literals when telling variant constructions from patterns

Signed-off-by: Dennis Zhuang <killme2008@gmail.com>

---------

Signed-off-by: Dennis Zhuang <killme2008@gmail.com>
This commit is contained in:
dennis zhuang
2026-12-02 12:18:45 +00:00
committed by GitHub
parent 76209d6179
commit 0f6a9b3d6e
34 changed files with 283 additions and 1045 deletions
@@ -25,6 +25,9 @@ runs:
- name: Run enterprise license check tests
shell: bash
run: python3 scripts/check-enterprise-license-test.py
- name: Run snafu variant check tests
shell: bash
run: python3 scripts/check-snafu-test.py
- name: Run fuzz orchestration script tests
shell: bash
run: .github/scripts/run-fuzz-targets-test.sh