File tree 1 file changed +6
-10
lines changed
1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ use iter::FromIter;
23
23
use kinds:: Copy ;
24
24
use libc;
25
25
use num:: Zero ;
26
+ use ops:: Add ;
26
27
use option:: { None , Option , Some } ;
27
28
use ptr:: to_unsafe_ptr;
28
29
use ptr;
@@ -40,6 +41,7 @@ use util;
40
41
41
42
#[ cfg( not( test) ) ] use cmp:: Equiv ;
42
43
44
+ #[ doc( hidden) ]
43
45
pub mod rustrt {
44
46
use libc;
45
47
use vec:: raw;
@@ -1180,16 +1182,10 @@ impl<T:Ord> Ord for @[T] {
1180
1182
}
1181
1183
1182
1184
#[ cfg( not( test) ) ]
1183
- pub mod traits {
1184
- use kinds:: Copy ;
1185
- use ops:: Add ;
1186
- use vec:: append;
1187
-
1188
- impl < ' self , T : Copy > Add < & ' self [ T ] , ~[ T ] > for ~[ T ] {
1189
- #[ inline]
1190
- fn add ( & self , rhs : & & ' self [ T ] ) -> ~[ T ] {
1191
- append ( copy * self , ( * rhs) )
1192
- }
1185
+ impl < ' self , T : Copy > Add < & ' self [ T ] , ~[ T ] > for ~[ T ] {
1186
+ #[ inline]
1187
+ fn add ( & self , rhs : & & ' self [ T ] ) -> ~[ T ] {
1188
+ append ( copy * self , ( * rhs) )
1193
1189
}
1194
1190
}
1195
1191
You can’t perform that action at this time.
0 commit comments