File tree Expand file tree Collapse file tree 2 files changed +3
-17
lines changed
branches/snap-stage3/src/liballoc Expand file tree Collapse file tree 2 files changed +3
-17
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: a0f86de49748b472d4d189d9688b0d856c000914
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: ee253c918d2fb961dbdf5c6dbe40dd7fee20148e
4
+ refs/heads/snap-stage3: e6f85c2f78bc0488c7cf08121b26dcbc85a846ba
5
5
refs/heads/try: 08f6380a9f0b866796080094f44fe25ea5636547
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
Original file line number Diff line number Diff line change @@ -779,26 +779,12 @@ trait RcBoxPtr<T> {
779
779
780
780
impl < T > RcBoxPtr < T > for Rc < T > {
781
781
#[ inline( always) ]
782
- fn inner ( & self ) -> & RcBox < T > {
783
- unsafe {
784
- // Safe to assume this here, as if it weren't true, we'd be breaking
785
- // the contract anyway
786
- assume ( !self . _ptr . is_null ( ) ) ;
787
- & ( * * self . _ptr )
788
- }
789
- }
782
+ fn inner ( & self ) -> & RcBox < T > { unsafe { & ( * * self . _ptr ) } }
790
783
}
791
784
792
785
impl < T > RcBoxPtr < T > for Weak < T > {
793
786
#[ inline( always) ]
794
- fn inner ( & self ) -> & RcBox < T > {
795
- unsafe {
796
- // Safe to assume this here, as if it weren't true, we'd be breaking
797
- // the contract anyway
798
- assume ( !self . _ptr . is_null ( ) ) ;
799
- & ( * * self . _ptr )
800
- }
801
- }
787
+ fn inner ( & self ) -> & RcBox < T > { unsafe { & ( * * self . _ptr ) } }
802
788
}
803
789
804
790
#[ cfg( test) ]
You can’t perform that action at this time.
0 commit comments