diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2018-09-28 15:25:02 +0200 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2018-10-05 12:04:47 +0200 |
| commit | 80bc17108eedeb5f529ef380337e8ad48babab64 (patch) | |
| tree | 7f33afe56970d5ed12386e2052c1b6d3f790075f /src/test/incremental/thinlto | |
| parent | 504ab34e6298bf7c743d1df0cd3f48522355552d (diff) | |
| download | rust-80bc17108eedeb5f529ef380337e8ad48babab64.tar.gz rust-80bc17108eedeb5f529ef380337e8ad48babab64.zip | |
Improve diagnostics for borrow-check errors that result from drops of temporary r-values.
Changed `BorrowExplanation::UsedLaterWhenDropped` to handle both named locals and also unnamed (aka temporaries). If the dropped temporary does not implement `Drop`, then we print its full type; but when the dropped temporary is itself an ADT `D` that implements `Drop`, then diagnostic points the user directly at `D`.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
