Tracking issue for future-incompatibility lint cenum_impl_drop_cast
#73333
Labels
A-destructors
Area: Destructors (`Drop`, …)
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-future-incompatibility
Category: Future-incompatibility lints
C-tracking-issue
Category: An issue tracking the progress of sth. like the implementation of an RFC
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This is the summary issue for the
CENUM_IMPL_DROP_CAST
future-incompatibility lint and other related errors. 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 warning is issue when a C-like enum implementing the
Drop
trait is cast. For example:This cast will be rejected to enforce uniformity between all moving operations. See #35941 for more details.
When will this warning become a hard error?
At the beginning of each 6-week release cycle, the Rust compiler team will review the set of outstanding future compatibility warnings and nominate some of them for Final Comment Period. Toward the end of the cycle, we will review any comments and make a final determination whether to convert the warning into a hard error or remove it entirely.
The text was updated successfully, but these errors were encountered: