File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -668,6 +668,13 @@ impl<T: fmt::Debug> fmt::Debug for Arc<T> {
668
668
}
669
669
}
670
670
671
+ #[ stable( feature = "rust1" , since = "1.0.0" ) ]
672
+ impl < T > fmt:: Pointer for Arc < T > {
673
+ fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
674
+ fmt:: Pointer :: fmt ( & * self . _ptr , f)
675
+ }
676
+ }
677
+
671
678
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
672
679
impl < T : Default + Sync + Send > Default for Arc < T > {
673
680
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
Original file line number Diff line number Diff line change @@ -634,6 +634,13 @@ impl<T: fmt::Debug> fmt::Debug for Rc<T> {
634
634
}
635
635
}
636
636
637
+ #[ stable( feature = "rust1" , since = "1.0.0" ) ]
638
+ impl < T > fmt:: Pointer for Rc < T > {
639
+ fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
640
+ fmt:: Pointer :: fmt ( & * self . _ptr , f)
641
+ }
642
+ }
643
+
637
644
/// A weak version of `Rc<T>`.
638
645
///
639
646
/// Weak references do not count when determining if the inner value should be
You can’t perform that action at this time.
0 commit comments