Skip to content

Conversation

dforsyth
Copy link
Contributor

Just adds a forgotten if.

brson added a commit that referenced this pull request Feb 1, 2013
add if to borrowed ptr tutorial
@brson brson merged commit f0c9927 into rust-lang:incoming Feb 1, 2013
@brson
Copy link
Contributor

brson commented Feb 1, 2013

Thanks!

flip1995 pushed a commit to flip1995/rust that referenced this pull request Jan 15, 2021
…, r=phansch

Catch `pointer::cast` too in `cast_ptr_alignment`

Fixes rust-lang#4708

Although there were some discussion in the issue, this PR implements the original feature. I think `cast_ptr_alignment` should exist as it is, separated from `ptr_as_ptr`.

---

changelog: Extend `cast_ptr_alignment` lint for the `pointer::cast` method
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.

2 participants