Skip to content

Fix recursive whitelisting and handling of opaque for derive default #889

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
Aug 4, 2017
Merged

Fix recursive whitelisting and handling of opaque for derive default #889

merged 1 commit into from
Aug 4, 2017

Conversation

photoszzt
Copy link
Contributor

Fix regression of derive default analysis.
Also fix opaque handing exposed by the above fix. r? @fitzgen

Fix regression of derive default analysis.
Also fix opaque handing exposed by the above fix.
@photoszzt photoszzt changed the title Fix recursive whitelisting and handling of opaque Fix recursive whitelisting and handling of opaque for derive default Aug 3, 2017
Copy link
Member

@fitzgen fitzgen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@@ -158,7 +158,7 @@ impl<'ctx, 'gen> MonotoneFramework for CannotDeriveDefault<'ctx, 'gen> {
}
};

if ty.is_opaque(self.ctx, item) {
if item.is_opaque(self.ctx, &()) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, is the idea that we missed the opaque_by_name case before?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes.

@fitzgen
Copy link
Member

fitzgen commented Aug 3, 2017

@bors-servo r+

@bors-servo
Copy link

📌 Commit 8c6a253 has been approved by fitzgen

@bors-servo
Copy link

⌛ Testing commit 8c6a253 with merge f8e623e...

bors-servo pushed a commit that referenced this pull request Aug 3, 2017
Fix recursive whitelisting and handling of opaque for derive default

Fix regression of derive default analysis.
Also fix opaque handing exposed by the above fix. r? @fitzgen
@bors-servo
Copy link

💔 Test failed - status-travis

@fitzgen
Copy link
Member

fitzgen commented Aug 3, 2017

@bors-servo try

@bors-servo
Copy link

⌛ Trying commit 8c6a253 with merge 6fc0948...

bors-servo pushed a commit that referenced this pull request Aug 3, 2017
Fix recursive whitelisting and handling of opaque for derive default

Fix regression of derive default analysis.
Also fix opaque handing exposed by the above fix. r? @fitzgen
@bors-servo
Copy link

☀️ Test successful - status-travis
State: approved=fitzgen try=True

@bors-servo
Copy link

⌛ Testing commit 8c6a253 with merge 04fdb10...

bors-servo pushed a commit that referenced this pull request Aug 4, 2017
Fix recursive whitelisting and handling of opaque for derive default

Fix regression of derive default analysis.
Also fix opaque handing exposed by the above fix. r? @fitzgen
@bors-servo
Copy link

☀️ Test successful - status-travis
Approved by: fitzgen
Pushing 04fdb10 to master...

@bors-servo bors-servo merged commit 8c6a253 into rust-lang:master Aug 4, 2017
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.

3 participants