Rust-GCC / Rust-GCC/gccrs

Enum unused not detected

Open
#4,367 1 comment 0 reactions 1 assignee View on GitHub

@Naveen447-a11y is already working on this.

Since Feb 25, 2026.

Dominant language
C++
Stars
2.9k
Forks
230
Avg merge
19h 55m
Merged PRs (30d)
67

Description

Summary

It seems gccrs is not detecting unused enums

Reproducer

I tried this code:

enum Foo {
    A,
    B,
}
Does the code make use of any (1.49) nightly feature ?
  • Nightly
Godbolt link

https://godbolt.org/z/nnKWvx665

Actual behavior

There is no warning thrown

Expected behavior

I expected to see a warning on the unused enum

GCC Version

commit-hash: 32622b7

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.