File tree Expand file tree Collapse file tree 3 files changed +1
-11
lines changed
branches/snap-stage3/src/libcore Expand file tree Collapse file tree 3 files changed +1
-11
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 2898dcc5d97da9427ac367542382b6239d9c0bbf
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: e4c291530e4cc160eca30811e17d614f236147a4
4
+ refs/heads/snap-stage3: 3b9848b869c17ca369fc8bc7703e727eb19a211d
5
5
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ resource arc_destruct<T>(data: *libc::c_void) {
28
28
unsafe {
29
29
let data: ~arc_data < T > = unsafe :: reinterpret_cast ( data) ;
30
30
let new_count = rustrt:: rust_atomic_decrement ( & mut data. count ) ;
31
- let data_ptr : * ( ) = unsafe :: reinterpret_cast ( data) ;
32
31
assert new_count >= 0 ;
33
32
if new_count == 0 {
34
33
// drop glue takes over.
@@ -70,7 +69,6 @@ fn clone<T: const>(rc: &arc<T>) -> arc<T> {
70
69
unsafe {
71
70
let ptr: ~arc_data < T > = unsafe :: reinterpret_cast ( * * rc) ;
72
71
let new_count = rustrt:: rust_atomic_increment ( & mut ptr. count ) ;
73
- let data_ptr : * ( ) = unsafe :: reinterpret_cast ( ptr) ;
74
72
assert new_count >= 2 ;
75
73
unsafe :: forget ( ptr) ;
76
74
}
@@ -97,7 +95,6 @@ impl methods<T: send> for exclusive<T> {
97
95
// this makes me nervous...
98
96
let ptr: ~arc_data < ex_data < T > > = unsafe :: reinterpret_cast ( * self ) ;
99
97
let new_count = rustrt:: rust_atomic_increment ( & mut ptr. count ) ;
100
- let data_ptr : * ( ) = unsafe :: reinterpret_cast ( ptr) ;
101
98
assert new_count > 1 ;
102
99
unsafe :: forget ( ptr) ;
103
100
}
Original file line number Diff line number Diff line change @@ -2193,13 +2193,6 @@ mod tests {
2193
2193
assert addr == addr_imm;
2194
2194
}
2195
2195
2196
- #[ test]
2197
- fn test_unshift ( ) {
2198
- let mut x = [ 1 , 2 , 3 ] ;
2199
- unshift ( x, 0 ) ;
2200
- assert x == [ 0 , 1 , 2 , 3 ] ;
2201
- }
2202
-
2203
2196
#[ test]
2204
2197
fn test_capacity ( ) {
2205
2198
let mut v = [ 0u64 ] ;
You can’t perform that action at this time.
0 commit comments