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

librustc: Allow rvalues to be borrowed as &mut. #5974

Closed
wants to merge 3 commits into from

Conversation

luqmana
Copy link
Member

@luqmana luqmana commented Apr 20, 2013

@nikomatsakis
Copy link
Contributor

This doesn't quite look right. I believe the correct thing to do is simply to modify the mem_categorization code to categorize rvalues as mutable. Only thing is that I am not sure if there are other places that assume that they are immutable, or if there will be other follow on changes needed. (Note: I had planned to do this as part of the code for #5074)

@catamorphism
Copy link
Contributor

Needs a rebase.

@luqmana
Copy link
Member Author

luqmana commented May 14, 2013

Rebased this but not sure if @nikomatsakis has anything as part of the new borrowck.

@luqmana
Copy link
Member Author

luqmana commented May 14, 2013

Closed in favour of #6473.

@luqmana luqmana closed this May 14, 2013
@luqmana luqmana deleted the mut-temp branch May 14, 2013 14:35
bors added a commit that referenced this pull request May 16, 2013
…y, r=pcwalton

Simpler version of PR #5974 based on new borrowck.
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

Successfully merging this pull request may close these issues.

None yet

3 participants