bors 5ecace48f6 Auto merge of #16846 - roife:fix-issue16826, r=Veykril
fix: incorrect handling of `use` and panic issue in `extract_module`.

fix #16826

This PR includes the following changes:

1. Simplify the implementation partially, removing many unnecessary loops and `clone()`.

2. When it is found that the top level of the selection contains a `use` statement, a copy of the `use` will be reinserted before extraction. (#16826)

3. Fixed an issue during `extract_module`, where if the top level of the selected part contains `A` and `use A::B`, it caused a duplication of `use A`.
2024-03-16 17:35:49 +00:00
..
2024-03-11 11:05:59 -04:00
2024-03-12 13:46:58 +01:00
2024-03-15 21:14:17 +08:00
2024-03-14 16:24:51 +01:00
2024-03-14 16:24:51 +01:00
2024-03-14 16:24:51 +01:00