rust/src/test
Esteban Küber 87b6d38654 Don't hint to add lifetime on trait impl
Don't provide hint to add lifetime on impl items that implement a trait.

```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 impl items that implement a trait.
2016-11-10 16:22:03 -08: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 Don't hint to add lifetime on trait impl 2016-11-10 16:22:03 -08:00
compile-fail-fulldeps Rollup merge of #37614 - keeperofdakeys:proc_macro, r=jseyfried 2016-11-09 20:51:18 +02: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 add -Z continue-parse-after-error to parse-fail tests 2016-11-01 14:08:56 -04:00
pretty Changed most vec! invocations to use square braces 2016-10-31 22:51:40 +00: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 Rollup merge of #37370 - estebank:signature-2-empire-strikes-back, r=nikomatsakis 2016-11-09 20:51:16 +02:00
run-pass Partially stabilize RFC 1506 "Clarify relationships between ADTs" 2016-11-08 22:34:05 +03:00
run-pass-fulldeps Rollup merge of #37614 - keeperofdakeys:proc_macro, r=jseyfried 2016-11-09 20:51:18 +02:00
run-pass-valgrind Fix some pretty printing tests 2016-10-18 23:23:40 +03:00
rustdoc rustdoc: Improve playground run buttons 2016-10-15 18:32:03 +01:00
ui Don't hint to add lifetime on trait impl 2016-11-10 16:22:03 -08:00