Skip to content

Commit ede6d28

Browse files
alexcrichtonthestinger
authored andcommitted
---
yaml --- r: 151546 b: refs/heads/try2 c: 034f218 h: refs/heads/master v: v3
1 parent 3d03c15 commit ede6d28

File tree

4 files changed

+6
-22
lines changed

4 files changed

+6
-22
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: b40c3e9d3dd0a6be4d048389d33435f82205d376
8+
refs/heads/try2: 034f2180616c301934c3971cac6832aa607a4f08
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/mk/dist.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ LICENSE.txt: $(S)COPYRIGHT $(S)LICENSE-APACHE $(S)LICENSE-MIT
3636
PKG_TAR = dist/$(PKG_NAME).tar.gz
3737

3838
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
4040
PKG_FILES := \
4141
$(S)COPYRIGHT \
4242
$(S)LICENSE-APACHE \

branches/try2/src/doc/tutorial.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2385,7 +2385,7 @@ fn print_all<T: Printable>(printable_things: ~[T]) {
23852385
Declaring `T` as conforming to the `Printable` trait (as we earlier
23862386
did with `Clone`) makes it possible to call methods from that trait
23872387
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
23892389
whose element type does not have a `Printable` implementation.
23902390

23912391
Type parameters can have multiple bounds by separating them with `+`,
@@ -2428,9 +2428,9 @@ fn draw_all<T: Drawable>(shapes: ~[T]) {
24282428
# draw_all(~[c]);
24292429
~~~~
24302430

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
24322432
(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
24342434
needed, a trait name can alternately be used as a type, called
24352435
an _object_.
24362436

branches/try2/src/libstd/strbuf.rs

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
1313
use c_vec::CVec;
1414
use char::Char;
15-
use container::{Container, Mutable};
15+
use container::Container;
1616
use fmt;
1717
use io::Writer;
1818
use iter::{Extendable, FromIterator, Iterator, range};
@@ -245,13 +245,6 @@ impl Container for StrBuf {
245245
}
246246
}
247247

248-
impl Mutable for StrBuf {
249-
#[inline]
250-
fn clear(&mut self) {
251-
self.vec.clear()
252-
}
253-
}
254-
255248
impl FromIterator<char> for StrBuf {
256249
fn from_iter<I:Iterator<char>>(iterator: I) -> StrBuf {
257250
let mut buf = StrBuf::new();
@@ -305,7 +298,6 @@ impl<H:Writer> ::hash::Hash<H> for StrBuf {
305298
#[cfg(test)]
306299
mod tests {
307300
extern crate test;
308-
use container::{Container, Mutable};
309301
use self::test::Bencher;
310302
use str::{Str, StrSlice};
311303
use super::StrBuf;
@@ -388,12 +380,4 @@ mod tests {
388380
let mut s = StrBuf::from_str("\u00FC"); // ü
389381
s.truncate(1);
390382
}
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-
}
399383
}

0 commit comments

Comments
 (0)