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

RFC: Introduce Mut<T>, remove Cell<T> #9429

Closed
wants to merge 8 commits into from
Closed

RFC: Introduce Mut<T>, remove Cell<T> #9429

wants to merge 8 commits into from

Commits on Sep 23, 2013

  1. Introduce std::mutable with Mut<T>, a mutable slot

    blake2-ppc committed Sep 23, 2013
    Configuration menu
    Copy the full SHA
    3b1ad84 View commit details
    Browse the repository at this point in the history
  2. extra::rc: Replace RcMut<T> with Rc<Mut<T>>

    blake2-ppc committed Sep 23, 2013
    Configuration menu
    Copy the full SHA
    49aa1a8 View commit details
    Browse the repository at this point in the history
  3. Port users of Cell::with_mut_ref to use Mut<T>

    blake2-ppc committed Sep 23, 2013
    Configuration menu
    Copy the full SHA
    4f8c5b1 View commit details
    Browse the repository at this point in the history
  4. Port users of Cell::put_back to Mut<T>

    blake2-ppc committed Sep 23, 2013
    Configuration menu
    Copy the full SHA
    370e639 View commit details
    Browse the repository at this point in the history
  5. Replace Cell with Mut

    Replace the common Cell idiom with Mut<T>
    
    before:
    
    	let upvar_cell = Cell::new(x);
    	do spawn {
    		let xyz = upvar_cell.take().recv()
    	}
    
    after:
    
    	let upvar_cell = Mut::new_some(x)
    	do spawn {
    		let xyz = upvar_cell.take_unwrap().recv()
    	}
    blake2-ppc committed Sep 23, 2013
    Configuration menu
    Copy the full SHA
    d0ef87d View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2013

  1. Configuration menu
    Copy the full SHA
    ad67a55 View commit details
    Browse the repository at this point in the history
  2. Update tutorial to mention "Mut"

    blake2-ppc committed Sep 24, 2013
    Configuration menu
    Copy the full SHA
    3526c4b View commit details
    Browse the repository at this point in the history
  3. Fixup use std::mutable::Mut

    Remove Mut from the prelude, it should not be there.
    blake2-ppc committed Sep 24, 2013
    Configuration menu
    Copy the full SHA
    feb1646 View commit details
    Browse the repository at this point in the history