rust/src/test
Eduard-Mihai Burtescu 7894d2aad6 Rollup merge of #37481 - estebank:lifetime-help-removal-for-impl, r=eddyb
Don't provide hint to add lifetime on impl items

``` rust
use std::str::FromStr;

pub struct Foo<'a> {
    field: &'a str,
}

impl<'a> FromStr for Foo<'a> {
    type Err = ();
    fn from_str(path: &str) -> Result<Self, ()> {
        Ok(Foo { field: path })
    }
}
```

would give the following hint:

``` nocode
help: consider using an explicit lifetime parameter as shown: fn from_str(path: &'a str) -> Result<Self, ()>
  --> <anon>:9:5
   |
9  |     fn from_str(path: &str) -> Result<Self, ()> {
   |     ^
```

which is never correct, since then there will be a lifetime mismatch between the `impl` and the trait.

Remove this hint for all `impl` items.

Re: #37363.
2016-11-12 10:38:37 +02:00
..
codegen Auto merge of #36421 - TimNN:check-abis, r=alexcrichton 2016-10-25 21:49:59 -07:00
codegen-units Fix fallout in tests. 2016-09-27 06:43:51 +00:00
compile-fail Rollup merge of #37481 - estebank:lifetime-help-removal-for-impl, r=eddyb 2016-11-12 10:38:37 +02:00
compile-fail-fulldeps Support #[macro_reexport]ing custom derives. 2016-11-10 11:19:34 +00:00
debuginfo Merge branch 'gdb-next-gen' of https://github.com/TimNN/rust into rollup 2016-11-05 10:51:34 -07:00
incremental Rollup merge of #37654 - michaelwoerister:test-let-ich, r=nikomatsakis 2016-11-09 20:51:19 +02:00
mir-opt update tests 2016-10-04 20:43:43 +03:00
parse-fail Auto merge of #37246 - goffrie:no-loop, r=jseyfried 2016-11-11 02:51:01 -08:00
pretty tests: fix fallout in pretty-printing output exact-match tests. 2016-11-10 01:44:53 +02:00
run-fail move overflow tests from rust-fail to run-pass 2016-10-30 12:04:57 -04:00
run-fail-fulldeps Move CrateConfig from Crate to ParseSess. 2016-10-29 07:52:58 +00:00
run-make tests: fix fallout in flowgraph graphviz comparison dot files. 2016-11-10 01:44:53 +02:00
run-pass Work around a borrow surviving too long (fixes #37686) 2016-11-10 14:43:46 +01:00
run-pass-fulldeps Auto merge of #37645 - jseyfried:fix_crate_var_in_custom_derives, r=nrc 2016-11-10 11:25:17 -08:00
run-pass-valgrind Fix some pretty printing tests 2016-10-18 23:23:40 +03:00
rustdoc Rollup merge of #37190 - QuietMisdreavus:rustdoc-where-newline, r=GuillaumeGomez 2016-11-12 10:38:36 +02:00
ui Rollup merge of #37481 - estebank:lifetime-help-removal-for-impl, r=eddyb 2016-11-12 10:38:37 +02:00