]> git.lizzy.rs Git - rust.git/commitdiff
Merge #2592
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>
Fri, 20 Dec 2019 14:36:53 +0000 (14:36 +0000)
committerGitHub <noreply@github.com>
Fri, 20 Dec 2019 14:36:53 +0000 (14:36 +0000)
2592: Add std::ops::Index support for infering r=edwin0cheng a=edwin0cheng

see also #2534

Seem like this can't fix #2534 for this case:

```rust
fn foo3(bar: [usize; 2]) {
    let baz = bar[1];   // <--- baz is still unknown ?
    println!("{}", baz);
}
```

Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com>
1  2 
crates/ra_hir_def/src/path.rs
crates/ra_hir_ty/src/infer/expr.rs

Simple merge
Simple merge