Skip to content

Conversation

@Villosse
Copy link
Contributor

Fixes #4367

@Villosse
Copy link
Contributor Author

I still need to fix tests that does not pass testsuite (with new warning, it seems logic)

Adds missing warnings for Enums.

Fixes: Rust-GCC#4367

gcc/rust/ChangeLog:

	* checks/lints/rust-lint-scan-deadcode.h: Add warnings for
	Enums.

Signed-off-by: lenny.chiadmi-delage <[email protected]>
Adds simple test with unused Enum.

Addresses Rust-GCC#4367

gcc/testsuite/ChangeLog:

	* rust/compile/issue-4367.rs: New test.

Signed-off-by: lenny.chiadmi-delage <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enum unused not detected

1 participant