Skip to content

Commit 94982cb

Browse files
committed
---
yaml --- r: 109285 b: refs/heads/dist-snap c: 2ddb605 h: refs/heads/master i: 109283: 7b2cffa v: v3
1 parent b9a949d commit 94982cb

File tree

5 files changed

+2
-88
lines changed

5 files changed

+2
-88
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: f64fdf524a434f0e5cd0bc91d09c144723f3c90d
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: 3829ac2a52f12b08501cb25d82de32f39fbe801e
9+
refs/heads/dist-snap: 2ddb60565423bdc225ccc8dd4ebfb653c5650ba2
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/libstd/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ pub mod ascii;
134134

135135
pub mod ptr;
136136
pub mod owned;
137-
pub mod managed;
137+
mod managed;
138138
mod reference;
139139
pub mod rc;
140140
pub mod gc;

branches/dist-snap/src/libstd/managed.rs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@
1212
1313
#[cfg(not(test))] use cmp::*;
1414

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-
2215
/// Determine if two shared boxes point to the same object
2316
#[inline]
2417
pub fn ptr_eq<T>(a: @T, b: @T) -> bool {
@@ -66,14 +59,3 @@ fn test() {
6659
assert!((!ptr_eq::<int>(x, y)));
6760
assert!((!ptr_eq::<int>(y, x)));
6861
}
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-
}

branches/dist-snap/src/test/run-pass/match-pattern-drop.rs

Lines changed: 0 additions & 44 deletions
This file was deleted.

branches/dist-snap/src/test/run-pass/unique-copy-box.rs

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)