File tree Expand file tree Collapse file tree 4 files changed +6
-22
lines changed Expand file tree Collapse file tree 4 files changed +6
-22
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: b40c3e9d3dd0a6be4d048389d33435f82205d376
2
+ refs/heads/master: 034f2180616c301934c3971cac6832aa607a4f08
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: ec0258a381b88b5574e3f8ce72ae553ac3a574b7
5
5
refs/heads/try: 7c6c492fb2af9a85f21ff952942df3523b22fd17
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ LICENSE.txt: $(S)COPYRIGHT $(S)LICENSE-APACHE $(S)LICENSE-MIT
36
36
PKG_TAR = dist/$(PKG_NAME ) .tar.gz
37
37
38
38
PKG_GITMODULES := $(S ) src/libuv $(S ) src/llvm $(S ) src/gyp $(S ) src/compiler-rt \
39
- $(S ) src/rt/hoedown
39
+ $(S ) src/rt/hoedown $( S ) src/jemalloc
40
40
PKG_FILES := \
41
41
$(S ) COPYRIGHT \
42
42
$(S ) LICENSE-APACHE \
Original file line number Diff line number Diff line change @@ -2385,7 +2385,7 @@ fn print_all<T: Printable>(printable_things: ~[T]) {
2385
2385
Declaring ` T ` as conforming to the ` Printable ` trait (as we earlier
2386
2386
did with ` Clone ` ) makes it possible to call methods from that trait
2387
2387
on values of type ` T ` inside the function. It will also cause a
2388
- compile-time error when anyone tries to call ` print_all ` on a vector
2388
+ compile-time error when anyone tries to call ` print_all ` on an array
2389
2389
whose element type does not have a ` Printable ` implementation.
2390
2390
2391
2391
Type parameters can have multiple bounds by separating them with ` + ` ,
@@ -2428,9 +2428,9 @@ fn draw_all<T: Drawable>(shapes: ~[T]) {
2428
2428
# draw_all(~[c]);
2429
2429
~~~~
2430
2430
2431
- You can call that on a vector of circles, or a vector of rectangles
2431
+ You can call that on an array of circles, or an array of rectangles
2432
2432
(assuming those have suitable ` Drawable ` traits defined), but not on
2433
- a vector containing both circles and rectangles. When such behavior is
2433
+ an array containing both circles and rectangles. When such behavior is
2434
2434
needed, a trait name can alternately be used as a type, called
2435
2435
an _ object_ .
2436
2436
Original file line number Diff line number Diff line change 12
12
13
13
use c_vec:: CVec ;
14
14
use char:: Char ;
15
- use container:: { Container , Mutable } ;
15
+ use container:: Container ;
16
16
use fmt;
17
17
use io:: Writer ;
18
18
use iter:: { Extendable , FromIterator , Iterator , range} ;
@@ -245,13 +245,6 @@ impl Container for StrBuf {
245
245
}
246
246
}
247
247
248
- impl Mutable for StrBuf {
249
- #[ inline]
250
- fn clear ( & mut self ) {
251
- self . vec . clear ( )
252
- }
253
- }
254
-
255
248
impl FromIterator < char > for StrBuf {
256
249
fn from_iter < I : Iterator < char > > ( iterator : I ) -> StrBuf {
257
250
let mut buf = StrBuf :: new ( ) ;
@@ -305,7 +298,6 @@ impl<H:Writer> ::hash::Hash<H> for StrBuf {
305
298
#[ cfg( test) ]
306
299
mod tests {
307
300
extern crate test;
308
- use container:: { Container , Mutable } ;
309
301
use self :: test:: Bencher ;
310
302
use str:: { Str , StrSlice } ;
311
303
use super :: StrBuf ;
@@ -388,12 +380,4 @@ mod tests {
388
380
let mut s = StrBuf :: from_str ( "\u00FC " ) ; // ü
389
381
s. truncate ( 1 ) ;
390
382
}
391
-
392
- #[ test]
393
- fn test_str_clear ( ) {
394
- let mut s = StrBuf :: from_str ( "12345" ) ;
395
- s. clear ( ) ;
396
- assert_eq ! ( s. len( ) , 0 ) ;
397
- assert_eq ! ( s. as_slice( ) , "" ) ;
398
- }
399
383
}
You can’t perform that action at this time.
0 commit comments