Skip to content

Commit a47752b

Browse files
committed
---
yaml --- r: 114539 b: refs/heads/master c: 4ef535e h: refs/heads/master i: 114537: 0bf585a 114535: cbcfc5e v: v3
1 parent 91b4a54 commit a47752b

File tree

163 files changed

+434
-1645
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

163 files changed

+434
-1645
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 1dea8834cccc5a7c3b4f7a5e2872010d11ced628
2+
refs/heads/master: 4ef535ebd07c39f2cf27f3ead6a803f96bccc0e4
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: ec0258a381b88b5574e3f8ce72ae553ac3a574b7
55
refs/heads/try: 7c6c492fb2af9a85f21ff952942df3523b22fd17

trunk/mk/crates.mk

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,25 +51,24 @@
5151

5252
TARGET_CRATES := libc std green rustuv native flate arena glob term semver \
5353
uuid serialize sync getopts collections num test time rand \
54-
workcache url log regex graphviz core rlibc alloc debug
54+
workcache url log regex graphviz core rlibc alloc
5555
HOST_CRATES := syntax rustc rustdoc fourcc hexfloat regex_macros fmt_macros
5656
CRATES := $(TARGET_CRATES) $(HOST_CRATES)
5757
TOOLS := compiletest rustdoc rustc
5858

5959
DEPS_core :=
6060
DEPS_rlibc :=
6161
DEPS_alloc := core libc native:jemalloc
62-
DEPS_debug := std
6362
DEPS_std := core libc alloc native:rustrt native:backtrace
6463
DEPS_graphviz := std
6564
DEPS_green := std rand native:context_switch
6665
DEPS_rustuv := std native:uv native:uv_support
6766
DEPS_native := std
68-
DEPS_syntax := std term serialize collections log fmt_macros debug
67+
DEPS_syntax := std term serialize collections log fmt_macros
6968
DEPS_rustc := syntax native:rustllvm flate arena serialize sync getopts \
70-
collections time log graphviz debug
69+
collections time log graphviz
7170
DEPS_rustdoc := rustc native:hoedown serialize sync getopts collections \
72-
test time debug
71+
test time
7372
DEPS_flate := std native:miniz
7473
DEPS_arena := std collections
7574
DEPS_graphviz := std
@@ -80,7 +79,7 @@ DEPS_semver := std
8079
DEPS_uuid := std serialize rand
8180
DEPS_sync := std alloc
8281
DEPS_getopts := std
83-
DEPS_collections := std rand debug
82+
DEPS_collections := std rand
8483
DEPS_fourcc := syntax std
8584
DEPS_hexfloat := syntax std
8685
DEPS_num := std rand

trunk/src/doc/guide-container.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ for (x, y) in it {
254254
}
255255
256256
// yield and print the last pair from the iterator
257-
println!("last: {}", it.next());
257+
println!("last: {:?}", it.next());
258258
259259
// the iterator is now fully consumed
260260
assert!(it.next().is_none());
@@ -349,9 +349,9 @@ returning another `DoubleEndedIterator` with `next` and `next_back` exchanged.
349349
~~~
350350
let xs = [1, 2, 3, 4, 5, 6];
351351
let mut it = xs.iter();
352-
println!("{}", it.next()); // prints `Some(1)`
353-
println!("{}", it.next()); // prints `Some(2)`
354-
println!("{}", it.next_back()); // prints `Some(6)`
352+
println!("{:?}", it.next()); // prints `Some(&1)`
353+
println!("{:?}", it.next()); // prints `Some(&2)`
354+
println!("{:?}", it.next_back()); // prints `Some(&6)`
355355
356356
// prints `5`, `4` and `3`
357357
for &x in it.rev() {
@@ -367,7 +367,7 @@ let xs = [1, 2, 3, 4];
367367
let ys = [5, 6, 7, 8];
368368
let mut it = xs.iter().chain(ys.iter()).map(|&x| x * 2);
369369
370-
println!("{}", it.next()); // prints `Some(2)`
370+
println!("{:?}", it.next()); // prints `Some(2)`
371371
372372
// prints `16`, `14`, `12`, `10`, `8`, `6`, `4`
373373
for x in it.rev() {
@@ -398,17 +398,17 @@ underlying iterators are.
398398
let xs = [1, 2, 3, 4, 5];
399399
let ys = ~[7, 9, 11];
400400
let mut it = xs.iter().chain(ys.iter());
401-
println!("{}", it.idx(0)); // prints `Some(1)`
402-
println!("{}", it.idx(5)); // prints `Some(7)`
403-
println!("{}", it.idx(7)); // prints `Some(11)`
404-
println!("{}", it.idx(8)); // prints `None`
401+
println!("{:?}", it.idx(0)); // prints `Some(&1)`
402+
println!("{:?}", it.idx(5)); // prints `Some(&7)`
403+
println!("{:?}", it.idx(7)); // prints `Some(&11)`
404+
println!("{:?}", it.idx(8)); // prints `None`
405405
406406
// yield two elements from the beginning, and one from the end
407407
it.next();
408408
it.next();
409409
it.next_back();
410410
411-
println!("{}", it.idx(0)); // prints `Some(3)`
412-
println!("{}", it.idx(4)); // prints `Some(9)`
413-
println!("{}", it.idx(6)); // prints `None`
411+
println!("{:?}", it.idx(0)); // prints `Some(&3)`
412+
println!("{:?}", it.idx(4)); // prints `Some(&9)`
413+
println!("{:?}", it.idx(6)); // prints `None`
414414
~~~

0 commit comments

Comments
 (0)