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

add if to borrowed ptr tutorial #4708

Merged
merged 1 commit into from
Feb 1, 2013
Merged

add if to borrowed ptr tutorial #4708

merged 1 commit into from
Feb 1, 2013

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