Skip to content

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

Closed
luqmana wants to merge 3 commits into
rust-lang:incomingfrom
luqmana:mut-temp
Closed

librustc: Allow rvalues to be borrowed as &mut.#5974
luqmana wants to merge 3 commits into
rust-lang:incomingfrom
luqmana:mut-temp

Conversation

@luqmana

Copy link
Copy Markdown
Contributor

@nikomatsakis

Copy link
Copy Markdown
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
Copy Markdown
Contributor

Needs a rebase.

@luqmana

Copy link
Copy Markdown
ContributorAuthor

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

@luqmana

Copy link
Copy Markdown
ContributorAuthor

Closed in favour of #6473.

@luqmanaluqmana 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 freeto 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.

3 participants

@luqmana@nikomatsakis@catamorphism