about summary refs log tree commit diff
path: root/src/test/ui/loop-break-value-no-repeat.rs
AgeCommit message (Collapse)AuthorLines
2018-08-14Merged migrated compile-fail tests and ui tests. Fixes #46841.David Wood-24/+0
2017-11-24Merge cfail and ui tests into ui testsOliver Schneider-1/+1
2017-05-17Stabilize the loop_break_value featurePietro Albini-1/+0
2017-03-30rework how we handle the type of loopsNiko Matsakis-0/+25
First, we keep a `CoerceMany` now to find the LUB of all the break expressions. Second, this `CoerceMany` is actually an `Option<CoerceMany>`, and we store `None` for loops where "break with an expression" is disallowed. This avoids silly duplicate errors about a type mismatch, since the loops pass already reports an error that the break cannot have an expression. Finally, since we now detect an invalid break target during HIR lowering, refactor `find_loop` to be infallible. Adjust tests as needed: - some spans from breaks are slightly different - break up a single loop into multiple since `CoerceMany` silences redundant and derived errors - add a ui test that we only give on error for loop-break-value