rust/clippy_lints
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
..
src Auto merge of #4365 - lukas-code:async_new_ret_no_self, r=flip1995 2019-08-12 05:15:16 +00:00
Cargo.toml Update pulldown-cmark to 0.5.3 2019-07-19 07:29:25 +02:00
README.md

This crate contains Clippy lints. For the main crate, check crates.io or GitHub.