Skip to content

Cross crate variant privacy - #6542

Closed
pcwalton wants to merge 6 commits into
rust-lang:incomingfrom
pcwalton:cross-crate-variant-privacy
Closed

pcwalton wants to merge 6 commits into
rust-lang:incomingfrom
pcwalton:cross-crate-variant-privacy

Conversation

@pcwalton

Copy link
Copy Markdown
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`
U007D pushed a commit to U007D/rust-mos that referenced this pull request Aug 21, 2026
6542: Revert "Upgrade version of npms lockfile" r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <[email protected]>
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