Skip to content

rustdoc: transitive Drop indicators should be shown #49689

Open
@ishitatsuyuki

Description

@ishitatsuyuki

A type can contain types implements Drop but doesn't implement Drop itself; I'll call this "transitive Drop" below.

Such types doesn't explicitly implement drop, but still have destructors run. We should indicate this in some way; for example, Drop has a meaning in futures (cancellation), but we can't see that currently through the docs; documenting transitive Drop will help the understanding.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-destructorsArea: Destructors (`Drop`, …)A-synthetic-implsArea: Synthetic impls, used by rustdoc to document auto traits and traits with blanket implsC-feature-requestCategory: A feature request, i.e: not implemented / a PR.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions