Matthias Krüger
40d933a19a
Rollup merge of #108705 - clubby789:refutable-let-closure-borrow, r=cjgillot
...
Prevent ICE with broken borrow in closure
r? `@Nilstrieb`
Fixes #108683
This solution isn't ideal, I'm hoping to find a way to continue compilation without ICEing.
2023-05-11 07:05:26 +02:00
Ezra Shaw
fd8aa5ec7d
tweak "make mut" spans when assigning to locals
2023-05-05 22:40:04 +12:00
Tomasz Miąsko
b855308521
Test precise capture with a multi-variant enum and exhaustive patterns
...
Add test checking that it is possible to capture fields of a
multi-variant enum, when remaining variants are visibly uninhabited
(under the `exhaustive_patterns` feature gate).
2023-04-30 20:24:10 +02:00
clubby789
2d5ca0ea4f
Bail out of MIR construction if check_match
fails
2023-04-30 19:17:40 +01:00
bindsdev
107d480892
improve error notes for packed struct reference diagnostic
2023-04-28 20:28:56 -05:00
Oli Scherer
334423263a
Run check_match
and check_liveness
when MIR is built instead of having an explicit phase for them
2023-04-21 22:32:38 +00:00
clubby789
f995003ec5
Fix subslice capture in closure
2023-03-27 22:26:30 +01:00
clubby789
f83ce99c32
Remove the capture_disjoint_fields
feature
2023-02-28 01:21:15 +00:00
Ben Kimock
de01ea26c9
Fix unintentional UB in ui tests
2023-02-15 09:05:05 -05:00
Ralf Jung
dfc4a7b2d0
make unaligned_reference a hard error
2023-01-31 20:28:11 +01:00
Esteban Küber
656db98bd9
Tweak E0597
...
CC #99430
2023-01-15 19:46:20 +00:00
Albert Larsan
cf2dff2b1e
Move /src/test to /tests
2023-01-11 09:32:08 +00:00