bors 8fc0a738e3 Auto merge of #3869 - taiki-e:use_self, r=flip1995
Fix `use_self` false positive on nested functions

Related to https://github.com/rust-lang/rust-clippy/pull/3640

The current `use_self` warns the following code.

```rust
#![warn(clippy::use_self)]
struct Foo {}
impl Foo {
    fn bar() {
        fn baz() -> Foo { //^ warning: unnecessary structure name repetition
            Foo {} //^ warning: unnecessary structure name repetition
         }
    }
}
```
2019-03-12 12:09:56 +00:00
..
2019-03-10 18:06:28 +00:00
2019-03-10 18:06:28 +00:00
2019-03-10 18:06:28 +00:00
2019-03-10 23:01:56 +01:00
2019-03-08 14:14:41 +01:00
2019-03-12 06:53:25 +01:00
2019-03-05 18:45:08 -05:00
2019-03-10 18:06:28 +00:00
2019-03-10 18:06:28 +00:00
2019-03-05 18:45:08 -05:00
2019-03-10 18:06:28 +00:00
2019-03-12 06:53:25 +01:00
2019-03-10 23:01:56 +01:00
2019-03-12 08:13:44 +02:00
2019-03-10 23:01:56 +01:00
2019-03-08 14:14:41 +01:00
2019-03-07 21:51:05 +01:00
2019-03-10 18:06:28 +00:00
2019-03-10 18:06:28 +00:00
2019-03-07 21:51:05 +01:00
2019-03-10 18:06:28 +00:00
2019-03-10 18:06:28 +00:00
2019-03-12 06:53:25 +01:00
2019-03-08 14:14:41 +01:00
2019-03-10 18:06:28 +00:00
2019-03-12 06:53:25 +01:00
2019-03-10 18:06:28 +00:00
2019-03-05 18:45:08 -05:00
2019-03-05 18:45:08 -05:00
2019-03-10 22:12:26 +01:00
2019-03-10 18:06:28 +00:00
2019-03-08 14:14:41 +01:00
2019-03-10 18:06:28 +00:00
2019-03-10 18:06:28 +00:00
2019-03-10 18:06:28 +00:00
2019-03-12 06:53:25 +01:00
2019-03-10 18:06:28 +00:00
2019-03-12 06:53:25 +01:00
2019-03-10 18:06:28 +00:00
2019-03-12 06:53:25 +01:00