Closed
Description
What is this lint about
We're planning to add the dyn upcasting coercion language feature (see https://github.com/rust-lang/dyn-upcasting-coercion-initiative). Unfortunately this new coercion rule will take priority over certain other coercion rules, which will mean some behavior change. See #89190 for initial bug report.
How to fix this warning/error
Ensure your own Deref
implementation is consistent with the trait_upcasting
feature brings and allow
this lint. Or avoid this code pattern altogether.
Current status
Implementation: #89461
Metadata
Metadata
Assignees
Labels
Area: trait objects, vtable layoutArea: Lints (warnings about flaws in source code) such as unused_mut.Category: Future-incompatibility lintsCategory: An issue tracking the progress of sth. like the implementation of an RFCStatus: It's hard to tell what's been done and what hasn't! Someone should do some investigation.Relevant to the compiler team, which will review and decide on the PR/issue.Relevant to the language team, which will review and decide on the PR/issue.
Type
Projects
Status
Idea