Skip to content

Conversation

@pcwalton
Copy link
Contributor

pcwalton added 6 commits May 15, 2013 19:33
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