Matthias Krüger 7b766e026a
Rollup merge of #148213 - GuillaumeGomez:fix-exit-of-expansion, r=yotamofek
Fix invalid tag closing when leaving expansion "original code"

Fixes rust-lang/rust#148184.

Problem was that in case an element inside the expansion's "original" element was not closed, this element would get its `pending_exit` field set to `true`, removing it when the next non-mergeable item gets pushed instead of being put inside it, and then next `exit_elem` would try to exit an empty class queue.

r? ```@notriddle```
2025-11-06 12:29:58 +01:00
..
2025-08-23 11:27:03 +02:00
2025-07-28 13:34:03 +01:00
2025-02-23 22:24:00 +05:30
2025-10-28 15:44:52 +01:00
2024-11-03 18:59:31 +00:00
2025-01-18 20:29:55 +01:00
2024-09-23 09:21:39 -07:00
2025-01-18 20:29:55 +01:00
2025-01-18 20:29:55 +01:00
2025-01-18 20:29:55 +01:00
2025-01-18 20:29:55 +01:00
2024-09-23 09:21:39 -07:00