Adding Drop
impl to a type used in a public API type is a SemVer hazard
#930
Labels
A-lint
Area: new or existing lint
If a type in the public API has no components that
impl Drop
, adding the firstimpl Drop
on that type or any of its components appears to be a major breaking change: playgroundI don't believe we have a reliable way of detecting this via rustdoc JSON right now. We can check for
impl Drop
on the public type itself, but I don't see a way to reliably check that for its components.Perhaps either rustdoc JSON could be extended with a new field with this information, or a new marker auto-trait could be added to the language that we could track?
The text was updated successfully, but these errors were encountered: