rust/crates
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
..
base-db Merge commit '574e23ec508064613783cba3d1833a95fd9a5080' into sync-from-ra 2024-03-10 08:47:38 +02:00
cfg Review Updates and added tests. 2024-03-11 11:05:59 -04:00
flycheck Show compilation progress in test explorer 2024-03-15 16:28:59 +03:30
hir fix: Fix wrong where clause rendering on hover 2024-03-16 17:49:59 +01:00
hir-def Repalce Span with SyntaxContextId in MacroCallLoc 2024-03-15 12:47:05 +01:00
hir-expand Remove usages of SpanData where Span suffices 2024-03-15 13:02:40 +01:00
hir-ty internal: Improve rooted upmapping 2024-03-12 13:46:58 +01:00
ide Auto merge of #16856 - Veykril:macarons, r=Veykril 2024-03-16 17:23:02 +00:00
ide-assists fix: typo 2024-03-15 21:14:17 +08:00
ide-completion Remove dead test code 2024-03-14 16:24:51 +01:00
ide-db internal: Use assoc items as anchors for spans 2024-03-15 09:28:39 +01:00
ide-diagnostics internal: Improve rooted upmapping 2024-03-12 13:46:58 +01:00
ide-ssr internal: Improve rooted upmapping 2024-03-12 13:46:58 +01:00
intern
limit
load-cargo Auto merge of #16335 - lnicola:salsa-lz4-file-text, r=Veykril 2024-03-11 13:43:33 +00:00
mbe Remove usages of SpanData where Span suffices 2024-03-15 13:02:40 +01:00
parser Merge commit '574e23ec508064613783cba3d1833a95fd9a5080' into sync-from-ra 2024-03-10 08:47:38 +02:00
paths Merge commit '4ef6a49b44e8aa380da7522442234bfd7a52c55e' into sync-from-ra 2024-03-03 09:17:31 +02:00
proc-macro-api Merge commit '574e23ec508064613783cba3d1833a95fd9a5080' into sync-from-ra 2024-03-10 08:47:38 +02:00
proc-macro-srv Remove dead test code 2024-03-14 16:24:51 +01:00
proc-macro-srv-cli
profile Merge commit '574e23ec508064613783cba3d1833a95fd9a5080' into sync-from-ra 2024-03-10 08:47:38 +02:00
project-model Merge commit '574e23ec508064613783cba3d1833a95fd9a5080' into sync-from-ra 2024-03-10 08:47:38 +02:00
rust-analyzer Distinguish integration tests from crates in test explorer 2024-03-15 17:16:28 +03:30
salsa Merge commit '574e23ec508064613783cba3d1833a95fd9a5080' into sync-from-ra 2024-03-10 08:47:38 +02:00
sourcegen
span Remove usages of SpanData where Span suffices 2024-03-15 13:02:40 +01:00
stdx Remove dead test code 2024-03-14 16:24:51 +01:00
syntax internal: Use assoc items as anchors for spans 2024-03-15 09:28:39 +01:00
test-fixture Merge commit '574e23ec508064613783cba3d1833a95fd9a5080' into sync-from-ra 2024-03-10 08:47:38 +02:00
test-utils
text-edit
toolchain Merge commit '574e23ec508064613783cba3d1833a95fd9a5080' into sync-from-ra 2024-03-10 08:47:38 +02:00
tt feat: Support macro calls in eager macros for IDE features 2024-03-14 15:40:35 +01:00
vfs Merge commit '574e23ec508064613783cba3d1833a95fd9a5080' into sync-from-ra 2024-03-10 08:47:38 +02:00
vfs-notify