-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Not planned
Not planned
Copy link
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsA-edition-2024Area: The 2024 editionArea: The 2024 editionC-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
This is tangentially related to #133167. I was looking for a way to opt out of that fix given the large number of false positives. A discussion in zulip pointed out that this lint as per documentation should not be enabled by default.
The
if_let_rescope
lint cannot deduce with complete confidence that the program semantics are preserved when the lifetime of such temporary values are shortened. For this reason, the suggestion from this lint is not automatically applied when runningcargo fix --edition
.
It is however definitely automatically applied. I'm not sure if this is a bug in the documentation or a bug in the implementation.
rnestler
Metadata
Metadata
Assignees
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsA-edition-2024Area: The 2024 editionArea: The 2024 editionC-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
ehuss commentedon Dec 2, 2024
Thanks for the report! This will be fixed by rust-lang/edition-guide#339. Closing since we don't track edition docs in this repo, and there is a PR up.