]> git.lizzy.rs Git - rust.git/commit
Merge #1154
authorbors[bot] <bors[bot]@users.noreply.github.com>
Sat, 20 Apr 2019 16:13:50 +0000 (16:13 +0000)
committerbors[bot] <bors[bot]@users.noreply.github.com>
Sat, 20 Apr 2019 16:13:50 +0000 (16:13 +0000)
commit4ad2e4ce4e88c809abc7a8006d306fb038eb2d18
tree21cc19a5b4fd27b42e09fa12642254227275e88f
parent526a6aba104a32eb9f0f5a65232783d5570c35d5
parent8ac3d1f9aa892fc891b69c7d8d00d39b9371d246
Merge #1154

1154: Initial support for lang items (and str completion) r=flodiebold a=marcogroppo

This PR adds partial support for lang items.
For now, the only supported lang items are the ones that target an impl block.

Lang items are now resolved during type inference - this means that `str` completion now works.

Fixes #1139.

(thanks Florian Diebold for the help!)

Co-authored-by: Marco Groppo <marco.groppo@gmail.com>
crates/ra_syntax/src/ast/generated.rs
crates/ra_syntax/src/grammar.ron