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: Don't emit "missing items" diagnostic for negative impls #16039

Conversation

WaffleLapkin
Copy link
Member

Negative impls can't have items, so there is no reason for this diagnostic.

LMK if I should add a test somewhere. Also LMK if that's not how we usually check multiple things in an if in r-a.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 6, 2023
@Veykril
Copy link
Member

Veykril commented Dec 7, 2023

Adding a simple test to the unit tests in crates\ide-diagnostics\src\handlers\trait_impl_missing_assoc_item.rs would be nice

@bors delegate+

@bors
Copy link
Collaborator

bors commented Dec 7, 2023

✌️ @WaffleLapkin, you can now approve this pull request!

If @Veykril told you to "r=me" after making some further change, please make that change, then do @bors r=@Veykril

@rust-cloud-vms rust-cloud-vms bot force-pushed the don't-emit-missing-assoc-items-diagnostic-for-negative-impls branch from 38b8c6d to 1630477 Compare December 10, 2023 22:22
@WaffleLapkin
Copy link
Member Author

@bors r=Veykril

@bors
Copy link
Collaborator

bors commented Dec 10, 2023

📌 Commit 1630477 has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Dec 10, 2023

⌛ Testing commit 1630477 with merge 457b966...

@bors
Copy link
Collaborator

bors commented Dec 10, 2023

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing 457b966 to master...

@bors bors merged commit 457b966 into rust-lang:master Dec 10, 2023
10 checks passed
@WaffleLapkin WaffleLapkin deleted the don't-emit-missing-assoc-items-diagnostic-for-negative-impls branch December 10, 2023 22:38
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.

None yet

4 participants