Skip to content

4367#4392

Draft
Villosse wants to merge 2 commits intoRust-GCC:masterfrom
Villosse:4367
Draft

4367#4392
Villosse wants to merge 2 commits intoRust-GCC:masterfrom
Villosse:4367

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 <lenny.chiadmi-delage@epita.fr>
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 <lenny.chiadmi-delage@epita.fr>
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