rust/clippy_lints
bors f947644f0d Auto merge of #5680 - ebroto:3792_let_return, r=Manishearth
let_and_return: avoid "does not live long enough" errors

EDIT: Add #3324 to the list of fixes

<details>
<summary>Description of old impl</summary>
<br>
Avoid suggesting turning the RHS expression of the last statement into the block tail expression if a temporary borrows from a local that would be destroyed before.

This is my first incursion into MIR so there's probably room for improvement!
</details>

Avoid linting if the return type of some method or function called in the last statement has a lifetime parameter.

changelog: Fix false positive in [`let_and_return`]

Fixes #3792
Fixes #3324
2020-06-08 16:47:22 +00:00
..
src Auto merge of #5680 - ebroto:3792_let_return, r=Manishearth 2020-06-08 16:47:22 +00:00
Cargo.toml Add regression test for endless loop 2020-06-01 10:20:17 +02:00
README.md

This crate contains Clippy lints. For the main crate, check GitHub.