Skip to content

Implement something like copy & move analysis #579

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

Closed
marijnh opened this issue Jun 25, 2011 · 2 comments
Closed

Implement something like copy & move analysis #579

marijnh opened this issue Jun 25, 2011 · 2 comments
Labels
A-type-system Area: Type system

Comments

@marijnh
Copy link
Contributor

marijnh commented Jun 25, 2011

Some pass should check whether code doesn't move from locations that should never be moved from (data structure fields can be swapped, if mutable, but never moved out, I think). The same pass can probably verify that no non-copyable values (currently only ty_res) are being copied.

I think that var x = rec(...) (moving from a temporary) should be valid. It doesn't really work at the moment.

@brson
Copy link
Contributor

brson commented Sep 28, 2011

Kind checking now does a lot of copy analysis.

@marijnh
Copy link
Contributor Author

marijnh commented Nov 15, 2011

This will be done by #1177.

@marijnh marijnh closed this as completed Nov 15, 2011
keeperofdakeys pushed a commit to keeperofdakeys/rust that referenced this issue Dec 12, 2017
celinval pushed a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
antoyo added a commit to antoyo/rust that referenced this issue Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-type-system Area: Type system
Projects
None yet
Development

No branches or pull requests

2 participants