diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-10-07 12:52:05 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-10-07 12:52:05 +0100 |
commit | 83a651b123c08d786d1328293fc0327252a6d5d3 (patch) | |
tree | 916f7c1ff5f24d3d27cb14e82044696751414843 /crates/hir_expand | |
parent | 5359e8f7429a7b6db7b1ab1ced5b19ff05d79123 (diff) | |
parent | 783af171f74d95b498662e5168c3ba320cca8553 (diff) |
Merge #6154
6154: Shorten type hints for std::iter Iterators r=SomeoneToIgnore a=Veykril
Fixes #3750.
This re-exports the `hir_expand::name::known` module to be able to fetch the `Iterator` and `iter` names.
I'm not sure if there is anything to do with `Solution::Ambig` in `normalize_trait_assoc_type` or whether discarding those results is always wanted.
Co-authored-by: Lukas Wirth <[email protected]>
Diffstat (limited to 'crates/hir_expand')
-rw-r--r-- | crates/hir_expand/src/name.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/hir_expand/src/name.rs b/crates/hir_expand/src/name.rs index a5750d829..63f828707 100644 --- a/crates/hir_expand/src/name.rs +++ b/crates/hir_expand/src/name.rs | |||
@@ -164,6 +164,7 @@ pub mod known { | |||
164 | result, | 164 | result, |
165 | boxed, | 165 | boxed, |
166 | // Components of known path (type name) | 166 | // Components of known path (type name) |
167 | Iterator, | ||
167 | IntoIterator, | 168 | IntoIterator, |
168 | Item, | 169 | Item, |
169 | Try, | 170 | Try, |