File tree Expand file tree Collapse file tree 4 files changed +5
-9
lines changed Expand file tree Collapse file tree 4 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 1212
1313use clone:: Clone ;
1414use cmp:: Eq ;
15- use fmt;
1615use kinds:: { marker, Copy } ;
1716use ops:: { Deref , DerefMut , Drop } ;
1817use option:: { None , Option , Some } ;
@@ -60,12 +59,6 @@ impl<T:Eq + Copy> Eq for Cell<T> {
6059 }
6160}
6261
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-
6962/// A mutable memory location with dynamically checked borrow rules
7063pub struct RefCell < T > {
7164 value : Unsafe < T > ,
Original file line number Diff line number Diff line change @@ -67,11 +67,12 @@ mod unicode;
6767mod unit;
6868pub mod any;
6969pub mod bool;
70+ pub mod cell;
71+ pub mod char;
7072pub mod finally;
7173pub mod iter;
7274pub mod option;
7375pub mod raw;
74- pub mod char;
7576pub mod result;
7677pub mod slice;
7778pub mod str;
Original file line number Diff line number Diff line change @@ -485,13 +485,15 @@ will look like `"\\{"`.
485485
486486use any;
487487use cast;
488+ use cell:: Cell ;
488489use char:: Char ;
489490use cmp;
490491use container:: Container ;
491492use io:: MemWriter ;
492493use io;
493494use iter;
494495use iter:: { Iterator , range} ;
496+ use kinds:: Copy ;
495497use num:: Signed ;
496498use option:: { Option , Some , None } ;
497499use owned:: Box ;
Original file line number Diff line number Diff line change @@ -141,6 +141,7 @@ extern crate core;
141141pub use core:: any;
142142pub use core:: bool;
143143pub use core:: cast;
144+ pub use core:: cell;
144145pub use core:: char;
145146pub use core:: clone;
146147pub use core:: container;
@@ -220,7 +221,6 @@ pub mod hash;
220221/* Common data structures */
221222
222223pub mod result;
223- pub mod cell;
224224
225225
226226/* Tasks and communication */
You can’t perform that action at this time.
0 commit comments