-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Tracking issue for future-incompatibility lint conflicting_repr_hints
#68585
Comments
Make conflicting_repr_hints a deny-by-default c-future-compat lint Closes rust-lang#68428. cc rust-lang#68585. r? @petrochenkov @pnkfelix
As discussed a bit in #68428 perhaps we should remove the warning and add semantics for C++ supports |
Beta crater results in #68586 (comment):
Based on these very limited results I don't think it's justified to retcon this into the specification, and making it an error again in the near future should be possible. |
|
Just encountered this error.
Will that make both those RFC obsolete? |
…ncompat, r=lcnr bump conflicting_repr_hints lint to be shown in dependencies This has been a future compatibility lint for years, let's bump it up to be shown in dependencies (so that hopefully we can then make it a hard error fairly soon). Cc rust-lang#68585
Rollup merge of rust-lang#128727 - RalfJung:conflicting-repr-future-incompat, r=lcnr bump conflicting_repr_hints lint to be shown in dependencies This has been a future compatibility lint for years, let's bump it up to be shown in dependencies (so that hopefully we can then make it a hard error fairly soon). Cc rust-lang#68585
repr(...)
hints future compatibilityconflicting_repr_hints
This is the summary issue for a bug fix related to
repr(...)
hints. The goal of this page is describe why this change was made and how you can fix code that is affected by it. It also provides a place to ask questions or register a complaint if you feel the change should not be made. For more information on the policy around future-compatibility warnings, see our breaking change policy guidelines.What is the warning for?
The compiler incorrectly accepts
#[repr(...)]
hints on data types where the hints are incompatible and have conflicts. Examples of this includes:We are presently issuing a deny-by-default lint when conflicting representation hints are used together but we expect to transition the lint to hard errors in the future.
How can you fix your code?
Generally speaking, the conflict should be fixed by more clearly expressing your intent so that the conflict is resolved.
The text was updated successfully, but these errors were encountered: