rust/tests
bors e255f36afe Auto merge of #4365 - lukas-code:async_new_ret_no_self, r=flip1995
new_ret_no_self: allow Self in inner type for impl Trait return types

Check the inner types of associated types of a trait when checking for Self in the return type of a `new` method. This means that the following will no longer warn:
```rust
trait Trait {
    type Inner;
}

struct S;

impl S {
    fn new() -> impl Trait<Inner = Option<Self>> {
        struct TraitImpl;

        impl Trait for TraitImpl {
            type Inner = Option<S>;
        }

        TraitImpl
    }
}
```
```rust
#![feature(async_await)]

struct Connection;

impl Connection {
    async fn new() -> Result<Self, ()> {
        Ok(S)
    }
}
```
closes #4359

changelog: fix `new_ret_no_self` lint for async `new` functions.
2019-08-12 05:15:16 +00:00
..
auxiliary Remove all copyright license headers 2019-01-08 21:46:39 +01:00
ui Auto merge of #4365 - lukas-code:async_new_ret_no_self, r=flip1995 2019-08-12 05:15:16 +00:00
ui-toml trivially_copy_pass_by_ref: print size of type and limit in the lint message 2019-05-23 23:48:20 +02:00
compile-test.rs cargo fmt 2019-06-21 16:47:34 +02:00
dogfood.rs Disable dogfood on windows for faster build time on travis 2019-07-14 15:21:50 +02:00
fmt.rs Enable rustfmt tests 2019-07-28 06:45:23 +02:00
matches.rs Remove all copyright license headers 2019-01-08 21:46:39 +01:00
missing-test-files.rs cargo fmt 2019-06-21 16:47:34 +02:00
needless_continue_helpers.rs Remove all copyright license headers 2019-01-08 21:46:39 +01:00
versioncheck.rs test(versioncheck): Use .no_deps() 2019-01-25 21:53:44 +01:00