Implement cmp traits for Rc<T> and add a ptr_eq method.
auto merge of #10634 : LeoTestard/rust/rc-eq, r=cmr