Skip to content

Use CrateOwner::by_owner_kind everywhere to exclude deleted ownerships #1940

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

Merged

Conversation

carols10cents
Copy link
Member

I found some places I missed checking for where we should be using the new CrateOwner::by_owner_kind helper method added in 6d94155 that adds the filter for deleted being false.

I've also added one test that currently passes and two tests that failed before this fix to hopefully cover everywhere that selects crate owners; the other places already have tests.

@rust-highfive
Copy link

r? @smarnach

(rust_highfive has picked a reviewer for you, use r? to override)

@carols10cents carols10cents force-pushed the owned-crates-shouldnt-include-deleted branch from 3482988 to 9c32906 Compare December 5, 2019 20:17
@carols10cents carols10cents marked this pull request as ready for review December 5, 2019 20:49
@smarnach
Copy link
Contributor

LGTM

@bors r+

@bors
Copy link
Contributor

bors commented Dec 12, 2019

📌 Commit 9c32906 has been approved by smarnach

bors added a commit that referenced this pull request Dec 12, 2019
…ted, r=smarnach

Use `CrateOwner::by_owner_kind` everywhere to exclude deleted ownerships

I found some places I missed checking for where we should be using the new `CrateOwner::by_owner_kind` helper method added in 6d94155 that adds the filter for `deleted` being false.

I've also added one test that currently passes and two tests that failed before this fix to hopefully cover everywhere that selects crate owners; the other places already have tests.
@bors
Copy link
Contributor

bors commented Dec 12, 2019

⌛ Testing commit 9c32906 with merge 000ce86...

@bors
Copy link
Contributor

bors commented Dec 12, 2019

☀️ Test successful - checks-travis
Approved by: smarnach
Pushing 000ce86 to master...

@bors bors merged commit 9c32906 into rust-lang:master Dec 12, 2019
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.

4 participants