rust/src
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
..
lintlist Auto merge of #5680 - ebroto:3792_let_return, r=Manishearth 2020-06-08 16:47:22 +00:00
driver.rs Auto merge of #72671 - flip1995:clippyup, r=Xanewok 2020-05-29 11:16:45 +00:00
main.rs Apply suggestions from code review 2020-04-15 14:25:42 -07:00