]> git.lizzy.rs Git - rust.git/commit
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)
commitd590f6ce12bf4d0311138846e26951b613f0afd4
treed73816f61ccdaa2b9710ff5c7efbb3b62367c9c3
parent81a1b14d78d6078c63dd42c09da5a3e171c85a3a
parent76d688a328ab53b6264f9e489b88524377a7271d
Merge #2592

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>
crates/ra_hir_def/src/path.rs
crates/ra_hir_ty/src/infer/expr.rs