Change the for-loop desugar so the `break` does not affect type inference. Fixes #42618 Rewrite the `for` loop desugaring to avoid contaminating the inference results. Under the older desugaring, `for x in vec![] { .. }` would erroneously type-check, even though the type of `vec![]` is unconstrained. (written by @nikomatsakis) |
||
|---|---|---|
| .. | ||
| map | ||
| check_attr.rs | ||
| def.rs | ||
| def_id.rs | ||
| intravisit.rs | ||
| itemlikevisit.rs | ||
| lowering.rs | ||
| mod.rs | ||
| pat_util.rs | ||
| print.rs | ||
| svh.rs | ||