Closed as not planned
Closed as not planned
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.