-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Function return does not always perform a move #995
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
Comments
It should not always perform a move. Consider returning |
Uniques don't have to be moved. They are allowed to be copied; they just don't like it. What approach can we take to make returning more likely to be a move? Is it true that it's always safe to do a move when returning a local? |
The optimization proposed in https://github.com/graydon/rust/issues/925 would help here. |
This has been fixed by #1177 |
…signed to unsigned overflow failures (rust-lang#995)
This is a problem for unique pointers
The text was updated successfully, but these errors were encountered: