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

Allow casting integers to unsafe pointers in constant expressions. #5263

Closed
wants to merge 3 commits into from

Conversation

jdm
Copy link
Contributor

@jdm jdm commented Mar 7, 2013

This is necessary for things like null pointers, for which ptr::null() is unusable.

r? @nikomatsakis

@nikomatsakis
Copy link
Contributor

I see this patch has bit-rotted, but I think it's ok. I'd give r+ to a rebased version. I think we can cleanup the rules around what casts are permitted but this is good enough for now.

@jdm jdm closed this Mar 7, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Apr 6, 2023
add large future lint

Closes rust-lang#5263

---

changelog: new lint: [`large_futures`]
[rust-lang#10414](rust-lang/rust-clippy#10414)
<!-- changelog_checked -->
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