Skip to content

Fix raw_pointer_derive warning #340

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

kamalmarhubi
Copy link
Member

This commit adds a small build script to detect if we need to
#[allow(raw_pointer_derive)] and makes the attribute conditional.

Refs #337

@posborne
Copy link
Member

posborne commented Apr 1, 2016

Huh, I tried a couple versions locally and the tests pass.

@homu retry

@posborne
Copy link
Member

posborne commented Apr 1, 2016

Ah, now I see. It is only when we are building the docs that things choke. It might work to invert the logic so that we allow unless we say that we should not have that behavior (might still get warnings when building docs, but who cares).

@kamalmarhubi
Copy link
Member Author

Ah thanks for looking. I tried at every released version locally and was confused.

This commit adds a small build script to detect if we need to
`#[allow(raw_pointer_derive)]` and makes the attribute conditional.

Refs nix-rust#337
@kamalmarhubi kamalmarhubi force-pushed the allow-raw-pointer-derive-warning branch from 9010e3c to 7c9524c Compare April 2, 2016 14:20
@kamalmarhubi
Copy link
Member Author

Flipped the logic, and filed rust-lang/cargo#2539

@posborne
Copy link
Member

posborne commented Apr 2, 2016

@homu r+

@homu
Copy link
Contributor

homu commented Apr 2, 2016

📌 Commit 7c9524c has been approved by posborne

@homu
Copy link
Contributor

homu commented Apr 2, 2016

⚡ Test exempted - status

@homu homu merged commit 7c9524c into nix-rust:master Apr 2, 2016
homu added a commit that referenced this pull request Apr 2, 2016
…=posborne

Fix raw_pointer_derive warning

This commit adds a small build script to detect if we need to
`#[allow(raw_pointer_derive)]` and makes the attribute conditional.

Refs #337
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