File tree Expand file tree Collapse file tree 5 files changed +6
-10
lines changed Expand file tree Collapse file tree 5 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
5
5
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
- refs/heads/try2: d4b5d82a3356630ede4ce1b436cb59760be7b703
8
+ refs/heads/try2: f62c121eb0de35ac03a7860e6039202f2522e527
9
9
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
10
10
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
11
11
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
Original file line number Diff line number Diff line change 12
12
13
13
use clone:: Clone ;
14
14
use cmp:: Eq ;
15
- use fmt;
16
15
use kinds:: { marker, Copy } ;
17
16
use ops:: { Deref , DerefMut , Drop } ;
18
17
use option:: { None , Option , Some } ;
@@ -60,12 +59,6 @@ impl<T:Eq + Copy> Eq for Cell<T> {
60
59
}
61
60
}
62
61
63
- impl < T : Copy + fmt:: Show > fmt:: Show for Cell < T > {
64
- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
65
- write ! ( f. buf, r"Cell \{ value: {} \}" , self . get( ) )
66
- }
67
- }
68
-
69
62
/// A mutable memory location with dynamically checked borrow rules
70
63
pub struct RefCell < T > {
71
64
value : Unsafe < T > ,
Original file line number Diff line number Diff line change @@ -67,11 +67,12 @@ mod unicode;
67
67
mod unit;
68
68
pub mod any;
69
69
pub mod bool;
70
+ pub mod cell;
71
+ pub mod char;
70
72
pub mod finally;
71
73
pub mod iter;
72
74
pub mod option;
73
75
pub mod raw;
74
- pub mod char;
75
76
pub mod result;
76
77
pub mod slice;
77
78
pub mod str;
Original file line number Diff line number Diff line change @@ -485,13 +485,15 @@ will look like `"\\{"`.
485
485
486
486
use any;
487
487
use cast;
488
+ use cell:: Cell ;
488
489
use char:: Char ;
489
490
use cmp;
490
491
use container:: Container ;
491
492
use io:: MemWriter ;
492
493
use io;
493
494
use iter;
494
495
use iter:: { Iterator , range} ;
496
+ use kinds:: Copy ;
495
497
use num:: Signed ;
496
498
use option:: { Option , Some , None } ;
497
499
use owned:: Box ;
Original file line number Diff line number Diff line change @@ -141,6 +141,7 @@ extern crate core;
141
141
pub use core:: any;
142
142
pub use core:: bool;
143
143
pub use core:: cast;
144
+ pub use core:: cell;
144
145
pub use core:: char;
145
146
pub use core:: clone;
146
147
pub use core:: container;
@@ -220,7 +221,6 @@ pub mod hash;
220
221
/* Common data structures */
221
222
222
223
pub mod result;
223
- pub mod cell;
224
224
225
225
226
226
/* Tasks and communication */
You can’t perform that action at this time.
0 commit comments