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

Make function arguments immutable again #1118

Closed
marijnh opened this issue Nov 2, 2011 · 0 comments
Closed

Make function arguments immutable again #1118

marijnh opened this issue Nov 2, 2011 · 0 comments

Comments

@marijnh
Copy link
Contributor

marijnh commented Nov 2, 2011

Currently, when you assign to an argument, the compiler magically inserts a local value that's a copy of the argument (which is still owned by the caller). This is probably too magical, and should be removed.

@ghost ghost assigned marijnh Nov 2, 2011
@marijnh marijnh closed this as completed in 1a68a98 Nov 3, 2011
@marijnh marijnh removed their assignment Jun 16, 2014
bjorn3 pushed a commit to bjorn3/rust that referenced this issue Dec 27, 2020
coastalwhite pushed a commit to coastalwhite/rust that referenced this issue Aug 5, 2023
celinval pushed a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
* Remove warning for `volatile_store`

* Removes `loc` clones
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

No branches or pull requests

1 participant