File tree Expand file tree Collapse file tree 5 files changed +2
-88
lines changed Expand file tree Collapse file tree 5 files changed +2
-88
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ refs/heads/try: f64fdf524a434f0e5cd0bc91d09c144723f3c90d
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9
- refs/heads/dist-snap: 3829ac2a52f12b08501cb25d82de32f39fbe801e
9
+ refs/heads/dist-snap: 2ddb60565423bdc225ccc8dd4ebfb653c5650ba2
10
10
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
11
11
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
12
12
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ pub mod ascii;
134
134
135
135
pub mod ptr;
136
136
pub mod owned;
137
- pub mod managed;
137
+ mod managed;
138
138
mod reference;
139
139
pub mod rc;
140
140
pub mod gc;
Original file line number Diff line number Diff line change 12
12
13
13
#[ cfg( not( test) ) ] use cmp:: * ;
14
14
15
- /// Returns the refcount of a shared box (as just before calling this)
16
- #[ inline]
17
- pub fn refcount < T > ( t : @T ) -> uint {
18
- use raw:: Repr ;
19
- unsafe { ( * t. repr ( ) ) . ref_count - 1 }
20
- }
21
-
22
15
/// Determine if two shared boxes point to the same object
23
16
#[ inline]
24
17
pub fn ptr_eq < T > ( a : @T , b : @T ) -> bool {
@@ -66,14 +59,3 @@ fn test() {
66
59
assert ! ( ( !ptr_eq:: <int>( x, y) ) ) ;
67
60
assert ! ( ( !ptr_eq:: <int>( y, x) ) ) ;
68
61
}
69
-
70
- #[ test]
71
- fn refcount_test ( ) {
72
- use clone:: Clone ;
73
-
74
- let x = @3 ;
75
- assert_eq ! ( refcount( x) , 1 ) ;
76
- let y = x. clone ( ) ;
77
- assert_eq ! ( refcount( x) , 2 ) ;
78
- assert_eq ! ( refcount( y) , 2 ) ;
79
- }
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments