Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lint conflicting_repr_hint should explain how to update flagged code #113641

Open
gonzalobg opened this issue Jul 13, 2023 · 0 comments
Open

Lint conflicting_repr_hint should explain how to update flagged code #113641

gonzalobg opened this issue Jul 13, 2023 · 0 comments
Labels
A-diagnostics Area: Messages for errors, warnings, and lints A-lint Area: Lints (warnings about flaws in source code) such as unused_mut. C-bug Category: This is a bug. C-future-incompatibility Category: Future-incompatibility lints L-conflicting_repr_hint Lint: conflicting_repr_hint

Comments

@gonzalobg
Copy link

My app using #[repr(C, u8)] enum to FFI with a C++ enum class : uint8_t {} stopped compiling when updating the toolchain.

The warning produced does not explain how to update this code.
The warning points to: #68585
In which this comment says that my code is the obvious way to do that: #68585 (comment)

The warning should explain how to update my code so that it continues working correctly.

@gonzalobg gonzalobg added the C-bug Category: This is a bug. label Jul 13, 2023
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Jul 13, 2023
@Noratrieb Noratrieb added A-lint Area: Lints (warnings about flaws in source code) such as unused_mut. A-diagnostics Area: Messages for errors, warnings, and lints C-future-incompatibility Category: Future-incompatibility lints and removed needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. labels Jul 13, 2023
@jieyouxu jieyouxu added the L-conflicting_repr_hint Lint: conflicting_repr_hint label May 13, 2024
@fmease fmease changed the title conflicting_repr_hint diagnostic should explain how to update code Lint conflicting_repr_hint should explain how to update flagged code Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-diagnostics Area: Messages for errors, warnings, and lints A-lint Area: Lints (warnings about flaws in source code) such as unused_mut. C-bug Category: This is a bug. C-future-incompatibility Category: Future-incompatibility lints L-conflicting_repr_hint Lint: conflicting_repr_hint
Projects
None yet
Development

No branches or pull requests

4 participants