-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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 overloaded operators for ptr #2122
Comments
What operators did you have in mind? Things like |
yes, |
Not going to work right now, because operators can't be unsafe. Not sure how to change that either. Going to close for now. |
At least for |
Yeah, that's true. We consider arithmetic safe, but indexing and dereferencing unsafe. Just having |
I'm going to try on work on this. I'll add overloaded |
Looks like #7631 added |
Add fixme tests for rust-lang#2121 to the expected suite since the test should fail, but not crash.
This seems like an obvious use case for operator overloading. Probably export them from core by default.
The text was updated successfully, but these errors were encountered: