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

Removing some mut-fields from libcore #5698

Closed
wants to merge 2 commits into from

Conversation

Thiez
Copy link
Contributor

@Thiez Thiez commented Apr 3, 2013

This pull request removes some mut-fields from at_vec, str, vec, unstable, and cell. Sadly in case of Cell this required using either transmute_mut (2 instances) or changing the interface. I chose the former. Perhaps it would be a good idea to merge Cell and Option, and take that opportunity to change the interface to use '&mut self' instead of '&self' (which would enable removing the transmutations) for take and put_back.

r?

@Thiez Thiez closed this Apr 3, 2013
@Thiez Thiez reopened this Apr 3, 2013
@Thiez
Copy link
Contributor Author

Thiez commented Apr 3, 2013

My apologies, forgot to push a change to unstable.rs before creating the pull request... It should be correct this time.

r?

@Thiez Thiez closed this Apr 3, 2013
@Thiez Thiez reopened this Apr 3, 2013
bors added a commit that referenced this pull request Apr 3, 2013
This pull request removes some mut-fields from at_vec, str, vec, unstable, and cell. Sadly in case of Cell this required using either transmute_mut (2 instances) or changing the interface. I chose the former. Perhaps it would be a good idea to merge Cell and Option, and take that opportunity to change the interface to use '&mut self' instead of '&self' (which would enable removing the transmutations) for take and put_back.

r?
@bors bors closed this Apr 3, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jun 23, 2020
if_same_then_else: don't assume multiplication is always commutative

changelog: Don't assume multiplication is always commutative in [`if_same_then_else`]

Fixes rust-lang#5698
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.

3 participants