bors[bot] 98020ef2f3 Merge #1394
1394: Fix hover for pat that shadows items r=matklad a=sinkuu

```rust
fn x() {}

fn y() {
    let x = 0i32;
    x; // hover on `x` is expected to be `i32`, but the actual result was `fn x()`
}
```

This was because: if [`res.is_empty()`](656a0fa9f9/crates/ra_ide_api/src/hover.rs (L205)), it fallbacks to "index based approach" and adds `fn x()` to `res`, which makes [`res.extend(type_of)` below](656a0fa9f9/crates/ra_ide_api/src/hover.rs (L260-L266)) not happen.

Co-authored-by: Shotaro Yamada <sinkuu@sinkuu.xyz>
2019-06-11 17:24:28 +00:00
..
2019-04-26 11:42:10 -04:00
2019-06-11 18:28:51 +03:00
2019-06-04 18:05:07 -04:00
2019-06-11 18:28:51 +03:00
2019-05-30 13:05:09 +03:00
2019-06-11 18:28:51 +03:00
2019-06-11 17:24:28 +00:00
2019-06-06 10:06:46 +08:00
2019-06-07 19:49:49 +08:00
2019-06-04 14:46:22 +03:00
2019-06-07 19:49:49 +08:00
2019-06-04 18:05:07 -04:00
2019-06-11 01:47:37 +03:00
2019-06-04 18:05:07 -04:00
2019-06-04 18:05:07 -04:00
2019-06-04 18:05:07 -04:00