about summary refs log tree commit diff
path: root/src/libstd/sys/unix/net.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-06-08 16:47:22 +0000
committerbors <bors@rust-lang.org>2020-06-08 16:47:22 +0000
commitf947644f0d5f1ac60c2f3dce66ddc92923271f2c (patch)
tree024a60b2ec4051d7b6300e3827ff1d800371e2d1 /src/libstd/sys/unix/net.rs
parent08b84b3f76db772f4aee5385bf79545417763acf (diff)
parentdac8a3c1ca19d2b5934ecbe2ed79ae6c156fd885 (diff)
downloadrust-f947644f0d5f1ac60c2f3dce66ddc92923271f2c.tar.gz
rust-f947644f0d5f1ac60c2f3dce66ddc92923271f2c.zip
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
Diffstat (limited to 'src/libstd/sys/unix/net.rs')
0 files changed, 0 insertions, 0 deletions