std: clean up ptr a bit
impl fmt::Pointer for &T and &mut T
auto merge of #12282 : cmr/rust/cleanup-ptr, r=huonw