Skip to content

Visit ForeignItems when marking dead code #79752

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
merged 1 commit into from
Dec 8, 2020
Merged

Conversation

cjgillot
Copy link
Contributor

@cjgillot cjgillot commented Dec 5, 2020

Follow-up to #79318

r? @lcnr

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 5, 2020
@lcnr
Copy link
Contributor

lcnr commented Dec 7, 2020

please squash the commits

r=me afterwards

@cjgillot
Copy link
Contributor Author

cjgillot commented Dec 8, 2020

Squashed.

@lcnr
Copy link
Contributor

lcnr commented Dec 8, 2020

Thanks 👍

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Dec 8, 2020

📌 Commit 37853f9 has been approved by lcnr

@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 Dec 8, 2020
@bors
Copy link
Collaborator

bors commented Dec 8, 2020

⌛ Testing commit 37853f9 with merge 5019791...

@bors
Copy link
Collaborator

bors commented Dec 8, 2020

☀️ Test successful - checks-actions
Approved by: lcnr
Pushing 5019791 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Dec 8, 2020
@bors bors merged commit 5019791 into rust-lang:master Dec 8, 2020
@rustbot rustbot added this to the 1.50.0 milestone Dec 8, 2020
tmandry added a commit to tmandry/rust that referenced this pull request Dec 9, 2020
Simplify visit_{foreign,trait}_item

Using an `if` seems like a better semantic fit and saves a few lines.

Noticed while looking at rust-lang#79752, but that's already merged.
r? `@lcnr,` cc `@cjgillot`

`@rustbot` modify labels +C-cleanup +T-compiler
@cjgillot cjgillot deleted the dead-alien branch December 10, 2020 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants