about summary refs log tree commit diff
path: root/tests/ui/loop-match
AgeCommit message (Collapse)AuthorLines
2025-09-01Auto merge of #144783 - folkertdev:loop-match-diverging-loop, r=SparrowLiibors-0/+44
fix `#[loop_match]` on diverging loop tracking issue: https://github.com/rust-lang/rust/issues/132306 fixes https://github.com/rust-lang/rust/issues/144492 fixes https://github.com/rust-lang/rust/issues/144493 fixes https://github.com/rust-lang/rust/issues/144781 this generated invalid MIR before. issue https://github.com/rust-lang/rust/issues/143806 still has an issue where we assign `state = state` which is invalid in MIR. Fixing that problem is tricky, so I'd like to do that separately. r? `@bjorn3`
2025-08-14Update uitestsJonathan Brouwer-100/+84
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
2025-08-04fix `#[loop_match]` on diverging loopFolkert de Vries-0/+44
this generated invalid MIR before
2025-08-01loop match: error on `#[const_continue]` outside `#[loop_match]`Folkert de Vries-6/+73
2025-07-28fix: Reject upvar scrutinees for `loop_match`Shoyu Vanilla-0/+99
2025-07-26`loop_match`: suggest extracting to a `const` itemFolkert de Vries-0/+232
if the expression cannot be evaluated in a straightforward way
2025-07-07`loop_match`: fix 'no terminator on block'Folkert de Vries-0/+31
2025-07-01loop match: handle opaque patternsFolkert de Vries-2/+26
fixes issue 143203
2025-07-01loop match: run exhaustiveness checkFolkert de Vries-2/+39
2025-06-23Add `#[loop_match]` for improved DFA codegenbjorn3-0/+1039
Co-authored-by: Folkert de Vries <folkert@folkertdev.nl>