File tree Expand file tree Collapse file tree 2 files changed +3
-14
lines changed
branches/snap-stage3/src/liballoc Expand file tree Collapse file tree 2 files changed +3
-14
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: e6f85c2f78bc0488c7cf08121b26dcbc85a846ba
4
+ refs/heads/snap-stage3: 91cec5b57e1e0961d1f75ede168d37f4748f9478
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 @@ -160,7 +160,6 @@ use core::option::Option::{Some, None};
160
160
use core:: ptr:: { self , PtrExt } ;
161
161
use core:: result:: Result ;
162
162
use core:: result:: Result :: { Ok , Err } ;
163
- use core:: intrinsics:: assume;
164
163
165
164
use heap:: deallocate;
166
165
@@ -752,20 +751,10 @@ trait RcBoxPtr<T> {
752
751
fn strong ( & self ) -> uint { self . inner ( ) . strong . get ( ) }
753
752
754
753
#[ inline]
755
- fn inc_strong ( & self ) {
756
- let strong = self . strong ( ) ;
757
- // The reference count is always at least one unless we're about to drop the type
758
- unsafe { assume ( strong > 0 ) ; }
759
- self . inner ( ) . strong . set ( strong + 1 ) ;
760
- }
754
+ fn inc_strong ( & self ) { self . inner ( ) . strong . set ( self . strong ( ) + 1 ) ; }
761
755
762
756
#[ inline]
763
- fn dec_strong ( & self ) {
764
- let strong = self . strong ( ) ;
765
- // The reference count is always at least one unless we're about to drop the type
766
- unsafe { assume ( strong > 0 ) ; }
767
- self . inner ( ) . strong . set ( strong - 1 ) ;
768
- }
757
+ fn dec_strong ( & self ) { self . inner ( ) . strong . set ( self . strong ( ) - 1 ) ; }
769
758
770
759
#[ inline]
771
760
fn weak ( & self ) -> uint { self . inner ( ) . weak . get ( ) }
You can’t perform that action at this time.
0 commit comments