Repository navigation
fix(source-edit): insert moved imports at Rust syntax boundaries - #4516
Merged
ScriptedAlchemy merged 2 commits intoOct 25, 2026
Merged
ScriptedAlchemy merged 2 commits into
ScriptedAlchemy merged 2 commits into
Conversation
|
ScriptedAlchemy
enabled auto-merge (squash)
October 24, 2026 14:59
ScriptedAlchemy
force-pushed
the
fix/move-symbol-rust-syntax-boundaries
branch
from
October 24, 2026 21:46
f65dd3f to
a833f1a
Compare
This was referenced Oct 25, 2026
ScriptedAlchemy
changed the base branch from
master
to
fix/cold-pass-memory-retry-loop
October 25, 2026 01:30
This was referenced Oct 25, 2026
ScriptedAlchemy
merged commit Oct 25, 2026
df4ae5c
into
fix/cold-pass-memory-retry-loop
8 of 10 checks passed
This was referenced Oct 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack order (merge first → last): #4473 → #4478 → #4521 → #4526 → #4515 → #4510 → #4516 → #4524 → #4489 → #4488 → #4485
This PR is layer 7/11, based on #4510. Next: #4524.
Merge bottom to top using merge commits. After each parent merges, retarget its child to master before merging the child; this preserves the ancestry already integrated and avoids reintroducing conflicts.
Summary
MoveSymbol can place an inferred Rust dependency inside an existing grouped import or ahead of a module's inner attributes. This change selects a complete top-level syntax boundary with the existing Rust parser, preserving the destination's original bytes.
Closes #4420.
Changes
source-edit-destination-syntax-unsupportederror before plan capture or writes when the Rust destination is incomplete or its attachments cannot be used safely. This also applies when no dependency imports are needed.Validation
Local validation used Cargo and the repository's pinned nightly toolchain.
git diff --check, and commitlint pass.The full suite uses a freshly Cargo-built test binary. This executor runs as UID 0, which bypassed twelve existing reconciliation fixtures' read-only-directory failures on the initial run. Rerunning the identical binary with only the child process's DAC bypass capabilities removed passed all 105 tests; no assertions or repository settings were changed for that rerun.