diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-01-07 19:53:05 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-01-07 19:53:05 +0000 |
commit | 5722d2b7b88cf04365037b0769316916e486de48 (patch) | |
tree | 89a4c3f6e8a2b41bb637f818defeb87a47fadd09 /crates/hir_expand/src | |
parent | 981a0d708ec352969f9ca075a3e0e50c6da48197 (diff) | |
parent | 7066bff9c323f3a02894f70728d22a4398d2e8bd (diff) |
Merge #7097
7097: Add fix to wrap return expression in Some r=matklad a=theotherphil
Fixes https://github.com/rust-analyzer/rust-analyzer/issues/7095
Co-authored-by: Phil Ellison <[email protected]>
Diffstat (limited to 'crates/hir_expand/src')
-rw-r--r-- | crates/hir_expand/src/name.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/hir_expand/src/name.rs b/crates/hir_expand/src/name.rs index 2f44876a8..95d853b6d 100644 --- a/crates/hir_expand/src/name.rs +++ b/crates/hir_expand/src/name.rs | |||
@@ -164,6 +164,7 @@ pub mod known { | |||
164 | future, | 164 | future, |
165 | result, | 165 | result, |
166 | boxed, | 166 | boxed, |
167 | option, | ||
167 | // Components of known path (type name) | 168 | // Components of known path (type name) |
168 | Iterator, | 169 | Iterator, |
169 | IntoIterator, | 170 | IntoIterator, |
@@ -172,6 +173,7 @@ pub mod known { | |||
172 | Ok, | 173 | Ok, |
173 | Future, | 174 | Future, |
174 | Result, | 175 | Result, |
176 | Option, | ||
175 | Output, | 177 | Output, |
176 | Target, | 178 | Target, |
177 | Box, | 179 | Box, |