diff options
Diffstat (limited to 'crates/ra_hir_ty/src/infer.rs')
-rw-r--r-- | crates/ra_hir_ty/src/infer.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crates/ra_hir_ty/src/infer.rs b/crates/ra_hir_ty/src/infer.rs index d3a066268..413904518 100644 --- a/crates/ra_hir_ty/src/infer.rs +++ b/crates/ra_hir_ty/src/infer.rs | |||
@@ -211,6 +211,12 @@ struct InferenceContext<'a> { | |||
211 | /// so it doesn't make sense. | 211 | /// so it doesn't make sense. |
212 | return_ty: Ty, | 212 | return_ty: Ty, |
213 | diverges: Diverges, | 213 | diverges: Diverges, |
214 | breakables: Vec<BreakableContext>, | ||
215 | } | ||
216 | |||
217 | #[derive(Clone, Debug)] | ||
218 | struct BreakableContext { | ||
219 | pub may_break: bool, | ||
214 | } | 220 | } |
215 | 221 | ||
216 | impl<'a> InferenceContext<'a> { | 222 | impl<'a> InferenceContext<'a> { |
@@ -226,6 +232,7 @@ impl<'a> InferenceContext<'a> { | |||
226 | body: db.body(owner), | 232 | body: db.body(owner), |
227 | resolver, | 233 | resolver, |
228 | diverges: Diverges::Maybe, | 234 | diverges: Diverges::Maybe, |
235 | breakables: Vec::new(), | ||
229 | } | 236 | } |
230 | } | 237 | } |
231 | 238 | ||