diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-06-06 18:54:14 -0700 |
|---|---|---|
| committer | Corey Richardson <corey@octayn.net> | 2013-06-28 10:44:15 -0400 |
| commit | f9b54541ee2bbab1d81b14252f4d4172e10fd748 (patch) | |
| tree | 05d98a9a5d6bb84f8c48fc646d898ec6ec6eb8d4 /src/libstd/task | |
| parent | 1c0aa7848103b5018473df851bc115d3e5585185 (diff) | |
| download | rust-f9b54541ee2bbab1d81b14252f4d4172e10fd748.tar.gz rust-f9b54541ee2bbab1d81b14252f4d4172e10fd748.zip | |
librustc: Disallow "mut" from distributing over bindings.
This is the backwards-incompatible part of per-binding-site "mut".
Diffstat (limited to 'src/libstd/task')
| -rw-r--r-- | src/libstd/task/spawn.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstd/task/spawn.rs b/src/libstd/task/spawn.rs index 95fc53c1b55..da3dc6b2a2e 100644 --- a/src/libstd/task/spawn.rs +++ b/src/libstd/task/spawn.rs @@ -636,7 +636,9 @@ fn spawn_raw_oldsched(mut opts: TaskOpts, f: ~fn()) { let child_data = Cell::new((notify_chan, child_arc, ancestors)); let result: ~fn() = || { // Agh. Get move-mode items into the closure. FIXME (#2829) - let mut (notify_chan, child_arc, ancestors) = child_data.take(); + let (notify_chan, child_arc, ancestors) = child_data.take(); + let mut child_arc = child_arc; + let mut ancestors = ancestors; // Child task runs this code. // Even if the below code fails to kick the child off, we must |
