Skip to content

Clarify warning regarding changes of rules for temporary lifetime extension #1106

Open
@JanBeh

Description

@JanBeh

The subsection on temporary lifetime extension currently contains the following warning:

Note: The exact rules for temporary lifetime extension are subject to change. This is describing the current behavior only.

It is not clear under which conditions these rules may change. A new compiler version? A new edition? Without clarification, this might be understood as a discouragement to rely on temporary lifetime extension in productive code. Is that intended?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-destructorsArea: destructors, dropping

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions