rust-analyzer/crates/ra_hir_ty/src
bors[bot] d590f6ce12
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>
2019-12-20 14:36:53 +00:00
..
infer Merge #2592 2019-12-20 14:36:53 +00:00
tests Add std::ops::Index support for infering 2019-12-19 12:45:07 +08:00
traits Use generic ItemLoc for impls 2019-12-20 13:47:44 +01:00
autoderef.rs Rename N! to name! 2019-12-13 22:33:38 +01:00
db.rs Add cycle recovery for type aliases 2019-11-30 12:57:32 +01:00
diagnostics.rs Rename Source -> InFile 2019-11-28 12:50:26 +03:00
display.rs Remove TruncateOptions struct 2019-12-19 16:43:41 +02:00
expr.rs Use path macro 2019-12-13 22:33:38 +01:00
infer.rs Use fill instread of for loop 2019-12-20 03:04:55 +08:00
lib.rs Rename ContainerId -> AssocContainerId 2019-12-20 12:00:05 +01:00
lower.rs Support for nested ADT 2019-12-20 12:20:49 +01:00
marks.rs Add test mark 2019-12-15 21:06:08 +01:00
method_resolution.rs Use generic ItemLoc for impls 2019-12-20 13:47:44 +01:00
op.rs Move Ty 2019-11-27 21:16:00 +03:00
primitive.rs Doc primitives 2019-11-26 15:41:48 +03:00
test_db.rs Fix test compilation 2019-12-04 18:30:42 -05:00
tests.rs Merge #2484 2019-12-06 20:28:28 +00:00
traits.rs Extract built-in trait implementations to separate module 2019-12-03 12:30:50 +01:00
utils.rs Introduce ContainerId 2019-12-20 12:07:23 +01:00