diff options
author | Roland Ruckerbauer <[email protected]> | 2020-05-18 22:39:10 +0100 |
---|---|---|
committer | Roland Ruckerbauer <[email protected]> | 2020-05-18 22:39:10 +0100 |
commit | 0fe876925e59aad4765b415d9caaf262a6d43c4c (patch) | |
tree | 2196f6884fe99a580b03f8891ef91c7065ff92cf /crates/ra_hir_ty/src/infer.rs | |
parent | 38e8f35855efac144373c1b5aab3af050e47e594 (diff) |
Infer return type of loops with value breaks.
Diffstat (limited to 'crates/ra_hir_ty/src/infer.rs')
-rw-r--r-- | crates/ra_hir_ty/src/infer.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ra_hir_ty/src/infer.rs b/crates/ra_hir_ty/src/infer.rs index 2876cb141..957d6e0b5 100644 --- a/crates/ra_hir_ty/src/infer.rs +++ b/crates/ra_hir_ty/src/infer.rs | |||
@@ -218,6 +218,7 @@ struct InferenceContext<'a> { | |||
218 | #[derive(Clone, Debug)] | 218 | #[derive(Clone, Debug)] |
219 | struct BreakableContext { | 219 | struct BreakableContext { |
220 | pub may_break: bool, | 220 | pub may_break: bool, |
221 | pub break_ty: Ty, | ||
221 | } | 222 | } |
222 | 223 | ||
223 | impl<'a> InferenceContext<'a> { | 224 | impl<'a> InferenceContext<'a> { |