diff options
| author | Jonathan Turner <jonathandturner@users.noreply.github.com> | 2016-09-02 15:28:51 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-09-02 15:28:51 -0700 |
| commit | 59c0ff6314f4b47bbb4b92f17e34d6886b8c0cba (patch) | |
| tree | 6a934fd10f7ac6b000eb4c17bbcdcfe1ac4ab5fc /src/rustllvm/RustWrapper.cpp | |
| parent | 9327edd773d6ff0dfb5e6c799ed4016f936f6575 (diff) | |
| parent | 439afcd9747808fb187b0676d63af5375a677e3d (diff) | |
| download | rust-59c0ff6314f4b47bbb4b92f17e34d6886b8c0cba.tar.gz rust-59c0ff6314f4b47bbb4b92f17e34d6886b8c0cba.zip | |
Rollup merge of #36171 - jonathandturner:temporary_value, r=nikomatsakis
Update lifetime errors to specifically note temporaries This PR updates the error message we give in the case of a temporary value not living long enough. Before: <img width="497" alt="screen shot 2016-08-31 at 10 02 47 am" src="https://cloud.githubusercontent.com/assets/547158/18138551/27a06794-6f62-11e6-9ee2-bdf8bed75ca7.png"> Now: <img width="488" alt="screen shot 2016-08-31 at 10 03 01 am" src="https://cloud.githubusercontent.com/assets/547158/18138557/2e5cf322-6f62-11e6-9047-4a78abf3d78c.png"> Specifically, it makes the following changes: * Detects if a temporary is being used. If so, it changes the labels to mention that a temporary value specifically is in question * Simplifies wording of the existing labels to focus on lifetimes rather than values being valid * Changes the help to a note, since the help+span wasn't as helpful (and sometimes more confusing) than just a note. r? @nikomatsakis
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
