diff options
| author | bors <bors@rust-lang.org> | 2018-10-07 00:28:26 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-10-07 00:28:26 +0000 |
| commit | dbecb7a6449e497ccc7d14801a4f595aa20147db (patch) | |
| tree | 5f71e166eefb787cdcf9b2a76b8eed468d909d5d /src/test/incremental/thinlto | |
| parent | 4efdc04a5d687fce7a63ca339e5c74d8c51e40d2 (diff) | |
| parent | 704877f2ad7e3424a5c0286aed8697ba498fb234 (diff) | |
| download | rust-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
