about summary refs log tree commit diff
path: root/tests/mir-opt/building/match
AgeCommit message (Collapse)AuthorLines
2025-09-16Add test.Camille Gillot-0/+571
2025-04-08Do not optimize out SwitchInt before borrowck, or if Zmir-preserve-ubMichael Goulet-15/+19
2024-08-18Bless *all* the mir-opt testsScott McMurray-39/+39
2024-08-18Update mir-opt filechecksScott McMurray-1/+1
2024-08-10Update testsNadrieril-31/+11
2024-07-29Set up false edges in `lower_match_tree`Nadrieril-123/+139
2024-07-09Return the `otherwise_block` instead of passing it as argumentNadrieril-137/+101
This saves a few blocks and matches the common `unpack!` paradigm.
2024-07-09Don't try to save an extra blockNadrieril-94/+106
This is preparation for the next commit.
2024-06-27Fix expansion of or-patternsNadrieril-10/+8
2024-06-27Add testNadrieril-0/+76
2024-06-10Add `SingleUseConsts` mir-opt passScott McMurray-3/+3
2024-06-03rustfmt `tests/mir-opt`.Nicholas Nethercote-1/+0
The only non-obvious changes: - `building/storage_live_dead_in_statics.rs` has a `#[rustfmt::skip]` attribute to avoid reformating a table of data. - Two `.mir` files have slight changes involving line numbers. - In `unusual_item_types.rs` an `EMIT_MIR` annotation is moved to outside a function, which is the usual spot, because `tidy` complains if such a comment is indented. The commit also tweaks the comments in `rustfmt.toml`.
2024-05-07Auto merge of #123332 - Nadrieril:testkind-never, r=matthewjasperbors-0/+155
never patterns: lower never patterns to `Unreachable` in MIR This lowers a `!` pattern to "goto Unreachable". Ideally I'd like to read from the place to make it clear that the UB is coming from an invalid value, but that's tricky so I'm leaving it for later. r? `@compiler-errors` how do you feel about a lil bit of MIR lowering
2024-05-04Lower never patterns to Unreachable in mirNadrieril-17/+101
2024-05-04Add testsNadrieril-0/+71
2024-05-02Stabilize exclusive_rangeRoss Smyth-1/+0
2024-04-20Add a non-shallow fake borrowNadrieril-7/+7
2024-04-20Rework fake borrow calculationNadrieril-46/+46
2024-04-03More precise false edgesNadrieril-8/+8
2024-03-30Add FileCheck directives to the new tests.Nadrieril-51/+42
2024-03-30Sort `Eq` candidates in the failure case tooNadrieril-45/+36
2024-03-30Add testNadrieril-0/+139
2024-03-30Regroup mir-opt tests of match buildingNadrieril-0/+837