diff options
| author | bors <bors@rust-lang.org> | 2013-06-04 09:37:41 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-06-04 09:37:41 -0700 |
| commit | 69511c219ccb15732383e20a29527cc589ec3d8f (patch) | |
| tree | 1b3e74bb6487f1cedf5739085908125dee487a2f /src/libstd/rt/work_queue.rs | |
| parent | b50030718cf28f2a5a81857a26b57442734fe854 (diff) | |
| parent | 1eb3a35094c1a5037a4bd25f9a56af2b9184e9eb (diff) | |
| download | rust-69511c219ccb15732383e20a29527cc589ec3d8f.tar.gz rust-69511c219ccb15732383e20a29527cc589ec3d8f.zip | |
auto merge of #6928 : Blei/rust/fix-constructors, r=bstrie
As part of #3853
Diffstat (limited to 'src/libstd/rt/work_queue.rs')
| -rw-r--r-- | src/libstd/rt/work_queue.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/rt/work_queue.rs b/src/libstd/rt/work_queue.rs index 58d36113f0e..cfffc55a58c 100644 --- a/src/libstd/rt/work_queue.rs +++ b/src/libstd/rt/work_queue.rs @@ -30,7 +30,7 @@ impl<T: Owned> WorkQueue<T> { pub fn push(&mut self, value: T) { unsafe { - let value = Cell(value); + let value = Cell::new(value); self.queue.with(|q| q.unshift(value.take()) ); } } |
