1
Fork 0

alloc: impl fmt::Pointer for Rc, Arc and Box

Closes #24091
This commit is contained in:
Richo Healey 2015-04-07 00:40:22 -07:00
parent b2e65ee6e4
commit a329a61b9b
6 changed files with 67 additions and 0 deletions

View file

@ -668,6 +668,13 @@ impl<T: fmt::Debug> fmt::Debug for Arc<T> {
}
}
#[stable(feature = "rust1", since = "1.0.0")]
impl<T> fmt::Pointer for Arc<T> {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
fmt::Pointer::fmt(&*self._ptr, f)
}
}
#[stable(feature = "rust1", since = "1.0.0")]
impl<T: Default + Sync + Send> Default for Arc<T> {
#[stable(feature = "rust1", since = "1.0.0")]