servo: Merge #5935 - Upgrade Rust (from servo:rustup_2015-04-25); r=Ms2ger

r? everybody

Source-Repo: https://github.com/servo/servo
Source-Revision: 49aed6555dbc008c1a378c5cbb303f5467232b6b
This commit is contained in:
Simon Sapin
2015-05-05 09:11:30 -05:00
parent fdfc800fa4
commit b72bb5e7d5
158 changed files with 2214 additions and 1847 deletions

View File

@@ -1480,13 +1480,12 @@ impl FlowConstructionUtils for FlowRef {
///
/// This must not be public because only the layout constructor can do this.
fn add_new_child(&mut self, mut new_child: FlowRef) {
let base = flow::mut_base(&mut **self);
{
let kid_base = flow::mut_base(&mut *new_child);
kid_base.parallel.parent = parallel::mut_owned_flow_to_unsafe_flow(self);
}
let base = flow::mut_base(&mut **self);
base.children.push_back(new_child);
let _ = base.parallel.children_count.fetch_add(1, Ordering::Relaxed);
}