Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: merge multiple suggestions into a single multi-span suggestion in needless_late_init #12777

Merged
merged 1 commit into from
May 8, 2024

Conversation

roife
Copy link
Member

@roife roife commented May 8, 2024

See rust-lang/rust-analyzer#17163 (comment).

Currently, the fix for needless_late_init would modify multiple parts in the file. However, these modifications are exported as separate suggestions instead of a unified 'multi-part suggestion'.

Consequently, rust-analyzer is unable to perform the fix correctly when applying suggestions automatically, as only one suggestion is processed at a time. This PR addresses this issue by merge all modifications into a single multi-part suggestion.

changelog: [needless_late_init]: merge multiple fixes into a single multi-span fix.

@rustbot
Copy link
Collaborator

rustbot commented May 8, 2024

r? @blyxyas

rustbot has assigned @blyxyas.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label May 8, 2024
@Alexendoo
Copy link
Member

Thanks!

@bors r+

@bors
Copy link
Collaborator

bors commented May 8, 2024

📌 Commit 362ef42 has been approved by Alexendoo

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented May 8, 2024

⌛ Testing commit 362ef42 with merge 30b3b73...

@bors
Copy link
Collaborator

bors commented May 8, 2024

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: Alexendoo
Pushing 30b3b73 to master...

1 similar comment
@bors
Copy link
Collaborator

bors commented May 8, 2024

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: Alexendoo
Pushing 30b3b73 to master...

@bors bors merged commit 30b3b73 into rust-lang:master May 8, 2024
5 checks passed
@bors
Copy link
Collaborator

bors commented May 8, 2024

👀 Test was successful, but fast-forwarding failed: 422 Changes must be made through a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants