about summary refs log tree commit diff
path: root/compiler/rustc_parse/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-12-01 02:08:51 +0000
committerbors <bors@rust-lang.org>2023-12-01 02:08:51 +0000
commitc263ccf18571b4a3791e4c50dcae5473d6f9593a (patch)
tree292300db070a51e574484838b848a0932c156527 /compiler/rustc_parse/src
parent1d726a2be0b9a762c5a15154e65f925994a58445 (diff)
parent9d2c92377d1bf4d8b408b57b681bb6a04eb153a6 (diff)
downloadrust-c263ccf18571b4a3791e4c50dcae5473d6f9593a.tar.gz
rust-c263ccf18571b4a3791e4c50dcae5473d6f9593a.zip
Auto merge of #118461 - celinval:smir-switch-targets, r=ouz-a
Change `SwitchTarget` representation in StableMIR

The new structure encodes its invariant, which reduces the likelihood of having an inconsistent representation. It is also more intuitive and user friendly.

I encapsulated the structure for now in case we decide to change it back.

### Notes:

1. I had to change the `Successors` type, since there's a conflict on the iterator type. We could potentially implement an iterator here, but I would prefer keeping it simple for now, and add a `successors_iter()` method if needed.
2. I removed `CoroutineDrop` for now since it we never create it. We can add it when we add support to other MIR stages.
Diffstat (limited to 'compiler/rustc_parse/src')
0 files changed, 0 insertions, 0 deletions