about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-10-07 00:28:26 +0000
committerbors <bors@rust-lang.org>2018-10-07 00:28:26 +0000
commitdbecb7a6449e497ccc7d14801a4f595aa20147db (patch)
tree5f71e166eefb787cdcf9b2a76b8eed468d909d5d /src/test/incremental/thinlto
parent4efdc04a5d687fce7a63ca339e5c74d8c51e40d2 (diff)
parent704877f2ad7e3424a5c0286aed8697ba498fb234 (diff)
downloadrust-dbecb7a6449e497ccc7d14801a4f595aa20147db.tar.gz
rust-dbecb7a6449e497ccc7d14801a4f595aa20147db.zip
Auto merge of #54782 - pnkfelix:issue-54556-semi-on-tail-diagnostic, r=nikomatsakis
NLL: temps in block tail expression diagnostic

This change adds a diagnostic that explains when temporaries in a block tail expression live longer than block local variables that they borrow, and attempts to suggest turning the tail expresion into a statement (either by adding a semicolon at the end, when its result value is clearly unused, or by introducing a `let`-binding for the result value and then returning that).

Fix #54556
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions