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

Forbid type parameters in inner statics #10189

Merged
merged 1 commit into from
Oct 31, 2013

Conversation

alexcrichton
Copy link
Member

Closes #9186

bors added a commit that referenced this pull request Oct 31, 2013
@bors bors closed this Oct 31, 2013
@bors bors merged commit 0db5005 into rust-lang:master Oct 31, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jan 12, 2023
…fate

expl_impl_clone_on_copy: ignore packed structs with type/const params

changelog: [`expl_impl_clone_on_copy`]: Ignore `#[repr(packed)]` structs with type or const paramaters

Fixes rust-lang#10188

A more involved solution that checks if any bound on the trait impl aren't present on the struct definition would be ideal, but I couldn't see a nice way to go about that
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.

Inner statics in generic fns aren't handled correctly.
3 participants