diff options
| author | bors <bors@rust-lang.org> | 2023-09-23 06:25:41 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-09-23 06:25:41 +0000 |
| commit | 136d74fab8503366fa8b2eb9099f9d7f1b4cb5ec (patch) | |
| tree | 73e70d23a283c9de156e8125e1b2da995bf45e51 /compiler/rustc_mir_transform/src/errors.rs | |
| parent | bf982631df866498a295528ff0047207e881d55d (diff) | |
| parent | d3dea30cb4c2f035ea8621dc266babb3a7be79b4 (diff) | |
| download | rust-136d74fab8503366fa8b2eb9099f9d7f1b4cb5ec.tar.gz rust-136d74fab8503366fa8b2eb9099f9d7f1b4cb5ec.zip | |
Auto merge of #116071 - estebank:issue-115905, r=compiler-errors
Point at cause of expectation of `break` value when possible When encountering a type error within the value of a `break` statement, climb the HIR tree to identify if the expectation comes from an assignment or a return type (if the loop is the tail expression of a `fn`). Fix #115905.
Diffstat (limited to 'compiler/rustc_mir_transform/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
