rust/src/test
Jonathan Turner 59c0ff6314 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
2016-09-02 15:28:51 -07:00
..
codegen Feature gate the sysv64 abi as feature(abi_sysv64) and add tests 2016-08-30 16:03:06 +02:00
codegen-units rustc: move the SelfSpace before TypeSpace in Substs. 2016-08-17 05:50:57 +03:00
compile-fail Rollup merge of #36171 - jonathandturner:temporary_value, r=nikomatsakis 2016-09-02 15:28:51 -07:00
compile-fail-fulldeps Rollup merge of #35917 - jseyfried:remove_attr_ext_traits, r=nrc 2016-08-28 10:40:04 +00:00
debuginfo Fix debug line info for macro expansions. 2016-08-25 00:40:42 -07:00
incremental fix stray comment 2016-08-23 13:29:28 -04:00
mir-opt rustc: remove ParamSpace from Substs. 2016-08-17 06:32:00 +03:00
parse-fail Implement RFC#1559: allow all literals in attributes. 2016-08-25 13:25:22 -07:00
pretty Implement RFC#1559: allow all literals in attributes. 2016-08-25 13:25:22 -07:00
run-fail Auto merge of #35764 - eddyb:byegone, r=nikomatsakis 2016-08-24 14:57:34 -07:00
run-fail-fulldeps Replace local backtrace with def-use, repair std macro spans 2016-08-17 14:26:14 -07:00
run-make Auto merge of #35637 - japaric:no-builtins-lto, r=alexcrichton 2016-08-16 10:13:18 -07:00
run-pass Rollup merge of #36160 - Aatch:normalize-closure-sig, r=eddyb 2016-09-02 15:28:51 -07:00
run-pass-fulldeps Future proof libsyntax_ext for union. 2016-08-30 05:53:33 +00:00
run-pass-valgrind Disable old trans access via -Z orbit, #[rustc_no_mir] or --disable-orbit. 2016-08-24 13:23:37 +03:00
rustdoc Redirect 2016-08-19 08:20:06 +12:00
ui Rollup merge of #36171 - jonathandturner:temporary_value, r=nikomatsakis 2016-09-02 15:28:51 -07:00