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

Cross crate variant privacy #6542

Closed

Conversation

pcwalton
Copy link
Contributor

This can perhaps be restored in the future. For now this is a precursor to
making typedefs work as expected.
Calling them LLVM asserts still, but that never worked anyway. This
is the backwards compatible part.
…with -O0.

This improves -O0 compile times dramatically.
@pcwalton pcwalton closed this May 23, 2013
@pcwalton pcwalton deleted the cross-crate-variant-privacy branch May 23, 2013 05:06
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jan 15, 2021
Add a new lint `ptr_as_ptr`

This PR adds a new lint `ptr_as_ptr` which checks for `as` casts between raw pointers without changing its mutability and suggest replacing it with `pointer::cast`. Closes rust-lang#5890.

Open question: should this lint be `pedantic` or `style`? I set it `pedantic` for now because the original post suggests using it, but I think the lint also fits well to `style`.

---

changelog: New lint `ptr_as_ptr`
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