Skip to content

Conversation

chenyukang
Copy link
Member

@chenyukang chenyukang commented Oct 4, 2025

Fixes #147070

From comments: #147070 (comment)
The lightlight row for diff must at least 2.

r? @estebank

@rustbot
Copy link
Collaborator

rustbot commented Oct 4, 2025

rustc_errors::emitter was changed

cc @Muscraft

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Oct 4, 2025
@chenyukang
Copy link
Member Author

current output:
image

@chenyukang
Copy link
Member Author

The output for tests/ui/mismatched_types/newlines-in-diagnostic-fix-suggestions-92741.rs is also fixed.

Before:
image

Now:
image

@estebank
Copy link
Contributor

estebank commented Oct 7, 2025

r=me after addressing comments

@chenyukang chenyukang force-pushed the yukang-fix-147070-wrong-highlight-span branch 4 times, most recently from 83a0258 to 4fcd3c0 Compare October 7, 2025 02:43
@chenyukang chenyukang force-pushed the yukang-fix-147070-wrong-highlight-span branch from 4fcd3c0 to 231c395 Compare October 7, 2025 02:46
@chenyukang
Copy link
Member Author

@bors r=estebank

@bors
Copy link
Collaborator

bors commented Oct 7, 2025

📌 Commit 231c395 has been approved by estebank

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 7, 2025
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Oct 7, 2025
…-highlight-span, r=estebank

Fix wrong span for hightlight for duplicated diff lines

Fixes rust-lang#147070

From comments: rust-lang#147070 (comment)
The lightlight row for diff must at least 2.

r? `@estebank`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Red highlighting in the wrong spot in the "help: remove the extra argument" message
5 participants