Skip to content

Tracking Issue for RFC 3606: Drop temporaries in tail expressions before local variables #123739

Closed
@traviscross

Description

This is a tracking issue for the RFC 3606: Drop temporaries in tail expressions before local variables

The feature gate for the issue is #![feature(shorter_tail_lifetimes)].

About tracking issues

Tracking issues are used to record the overall progress of implementation. They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions. A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature. Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.

Steps

Unresolved Questions

  • How uncommon are the situations where this change could affect existing code?
  • How advanced should the edition lint and migration be?
  • Can we make sure a lint catches the cases with unsafe code that could result in undefined behaviour?
  • Do we want to warn-by-default about these cases in older editions, or only warn when upgrading to Rust 2024?

Related

cc @nikomatsakis @m-ou-se

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Labels

A-edition-2024Area: The 2024 editionB-RFC-approvedBlocker: Approved by a merged RFC but not yet implemented.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCF-shorter_tail_lifetimes`#![feature(shorter_tail_lifetimes)]`S-tracking-ready-for-editionStatus: This issue is ready for inclusion in the edition.T-langRelevant to the language 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