Auto merge of #6469 - Ms2ger:rc-mut, r=saneyuki

Use Rc::get_mut rather than deprecated rc::get_mut.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6469)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-06-26 09:26:55 -06:00
commit ef97879c27

View file

@ -3644,7 +3644,8 @@ class ClassConstructor(ClassItem):
"let mut ret = Rc::new(%s {\n"
"%s\n"
"});\n"
"match rc::get_mut(&mut ret) {\n"
"// Note: callback cannot be moved after calling init.\n"
"match Rc::get_mut(&mut ret) {\n"
" Some(ref mut callback) => callback.parent.init(%s),\n"
" None => unreachable!(),\n"
"};\n"