rust-lang / rust-lang/reference
Clarify warning regarding changes of rules for temporary lifetime extension
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 1.6k
- Forks
- 607
- PR merge metrics
- PR metrics pending
Description
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?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the temporary lifetime extension subsection and review the quoted warning about its rules being subject to change. Clarify which conditions may cause the rules to change and whether the warning is intended to discourage relying on this behavior in productive code; done means the warning communicates that intent unambiguously.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100