aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_expand
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-12-20 14:36:53 +0000
committerGitHub <[email protected]>2019-12-20 14:36:53 +0000
commitd590f6ce12bf4d0311138846e26951b613f0afd4 (patch)
treed73816f61ccdaa2b9710ff5c7efbb3b62367c9c3 /crates/ra_hir_expand
parent81a1b14d78d6078c63dd42c09da5a3e171c85a3a (diff)
parent76d688a328ab53b6264f9e489b88524377a7271d (diff)
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 <[email protected]>
Diffstat (limited to 'crates/ra_hir_expand')
-rw-r--r--crates/ra_hir_expand/src/name.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ra_hir_expand/src/name.rs b/crates/ra_hir_expand/src/name.rs
index 59d8214fd..fd02ffa4e 100644
--- a/crates/ra_hir_expand/src/name.rs
+++ b/crates/ra_hir_expand/src/name.rs
@@ -161,6 +161,7 @@ pub mod known {
161 Range, 161 Range,
162 Neg, 162 Neg,
163 Not, 163 Not,
164 Index,
164 // Builtin macros 165 // Builtin macros
165 file, 166 file,
166 column, 167 column,