-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Require that the RHS of a move be a local variable #591
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
well, an upvar is still an lval of length 1, and .. an obj field should not be de-initializable. I think you're ok still. |
Right. We need to detect those and disallow them. |
Please also see https://github.com/graydon/rust/issues/57 . Also, checking for a path of length one is not the way to go here. Just look up the def of an expr_path and verify that that is the right kind of def. |
Are you sure you meant #57? That doesn't seem related... We still allow moving from an object field, but otherwise get it right, I think? |
No 57 wasn't what I meant. I meant a bug about moving out of temporaries, which I now can't find because github's bug search is somewhat primitive. I'm assigning this to add code to handle obj fields properly. |
Add experimental L4re support This PR introduces a UNIX-alike target for the l4re microkernel operating system. While this system is not a UNIX system at all, it is easiest to use the POSIX interface and hence benefit from common definitions. This version is a very early draft, only the basic data types have been verified and most of the complex data types (structs and unions) have not been ported yet. Thanks to TobiasSchaffner for providing his patched version, to verify some assumptions.
Conflicts: src/librustdoc/lib.rs: import conflict
This is a bit trickier than just making sure that it is a path of length 1, since it could also be an object field or (soon) an upvar.
The text was updated successfully, but these errors were encountered: