Skip to content

fix: Fix SyntaxEditor upmapping of nodes with mapped ancestor that aren't mapped themselves#21962

Merged
ChayimFriedman2 merged 1 commit intorust-lang:masterfrom
ChayimFriedman2:fix-syntaxeditor
Apr 6, 2026
Merged

fix: Fix SyntaxEditor upmapping of nodes with mapped ancestor that aren't mapped themselves#21962
ChayimFriedman2 merged 1 commit intorust-lang:masterfrom
ChayimFriedman2:fix-syntaxeditor

Conversation

@ChayimFriedman2
Copy link
Copy Markdown
Contributor

@ChayimFriedman2 ChayimFriedman2 commented Apr 6, 2026

There is no point to expect a connection between the mapped ancestor and the unmapped child.

See #t-compiler/rust-analyzer > Mapping in SyntaxEditor.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 6, 2026
@ChayimFriedman2 ChayimFriedman2 changed the title fix: Fix SyntaxEditor upmapping of nodes with mapped ancestor that aren't … fix: Fix SyntaxEditor upmapping of nodes with mapped ancestor that aren't mapped themselves Apr 6, 2026
…mapped themselves

There is no point to expect a connection between the mapped ancestor and the unmapped child.
Copy link
Copy Markdown
Member

@Shourya742 Shourya742 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ChayimFriedman2
Copy link
Copy Markdown
Contributor Author

Given the approval from @Shourya742 here and @DropDemBits on Zulip, I'll merge this.

@ChayimFriedman2 ChayimFriedman2 added this pull request to the merge queue Apr 6, 2026
Merged via the queue into rust-lang:master with commit 49094db Apr 6, 2026
17 checks passed
@ChayimFriedman2 ChayimFriedman2 deleted the fix-syntaxeditor branch April 6, 2026 08:28
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants