Skip to content

Enum unused not detected #4367

@Villosse

Description

@Villosse

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions