Skip to content

codegen: Make forward declarations go through the more generic path. #1241

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
Jan 29, 2018

Conversation

emilio
Copy link
Contributor

@emilio emilio commented Jan 29, 2018

Instead of special-casing.

This allows to use the normal flags to control what can be or not derived for
them.

Arguably deriving Copy / Clone is kind of busted for those, but changing this by
default broke tests (RefPtr stopped working for example).

So I think this is a good compromise.

Fixes #1238

Instead of special-casing.

This allows to use the normal flags to control what can be or not derived for
them.

Arguably deriving Copy / Clone is kind of busted for those, but changing this by
default broke tests (RefPtr<ForwardDeclaredType> stopped working for example).

So I think this is a good compromise.

Fixes rust-lang#1238
@highfive
Copy link

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!

@emilio
Copy link
Contributor Author

emilio commented Jan 29, 2018

r? @fitzgen or @pepyakin

@fitzgen
Copy link
Member

fitzgen commented Jan 29, 2018

@bors-servo r+

@bors-servo
Copy link

📌 Commit 34b9216 has been approved by fitzgen

@bors-servo
Copy link

⌛ Testing commit 34b9216 with merge ce7e69b...

bors-servo pushed a commit that referenced this pull request Jan 29, 2018
codegen: Make forward declarations go through the more generic path.

Instead of special-casing.

This allows to use the normal flags to control what can be or not derived for
them.

Arguably deriving Copy / Clone is kind of busted for those, but changing this by
default broke tests (RefPtr<ForwardDeclaredType> stopped working for example).

So I think this is a good compromise.

Fixes #1238
@bors-servo
Copy link

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

@bors-servo bors-servo merged commit 34b9216 into rust-lang:master Jan 29, 2018
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