File tree Expand file tree Collapse file tree 2 files changed +3
-14
lines changed
branches/try/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 2
2
refs/heads/master: a530cc9706324ad44dba464d541a807eb5afdb08
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 777435990e0e91df6b72ce80c9b6fa485eeb5daa
5
- refs/heads/try: e6f85c2f78bc0488c7cf08121b26dcbc85a846ba
5
+ refs/heads/try: 91cec5b57e1e0961d1f75ede168d37f4748f9478
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
8
8
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
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