aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_ty/src/infer.rs
diff options
context:
space:
mode:
authorRoland Ruckerbauer <[email protected]>2020-05-18 22:39:10 +0100
committerRoland Ruckerbauer <[email protected]>2020-05-18 22:39:10 +0100
commit0fe876925e59aad4765b415d9caaf262a6d43c4c (patch)
tree2196f6884fe99a580b03f8891ef91c7065ff92cf /crates/ra_hir_ty/src/infer.rs
parent38e8f35855efac144373c1b5aab3af050e47e594 (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.rs1
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)]
219struct BreakableContext { 219struct BreakableContext {
220 pub may_break: bool, 220 pub may_break: bool,
221 pub break_ty: Ty,
221} 222}
222 223
223impl<'a> InferenceContext<'a> { 224impl<'a> InferenceContext<'a> {