Skip to content

Conversation

Muscraft
Copy link
Member

rust-lang/rust#147354 introduced a fix for highlighting the wrong span for duplicated diff lines. This PR ports that change over, and modifies it to fit how annotate-snippets handles suggestions.

Note: The first commit just adds a regression test for coloring multiple multiline removals. This is because while testing the fix, I found that different "fixes" would fix the original example, but break how multiple multiline removals would get colored.

@Muscraft Muscraft force-pushed the fix-highlight-duplicated-diff branch from 070723f to 474d3a5 Compare October 14, 2025 13:57
@epage epage merged commit 31c90cb into rust-lang:master Oct 14, 2025
15 checks passed
@Muscraft Muscraft deleted the fix-highlight-duplicated-diff branch October 14, 2025 14:02
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.

2 participants