Skip to content

Commit c7bd86a

Browse files
committed
---
yaml --- r: 195263 b: refs/heads/tmp c: 9fb54f8 h: refs/heads/master i: 195261: 6758893 195259: ca3158a 195255: 20264a3 195247: 2ba97b4 195231: 442343c 195199: 5c6e337 v: v3
1 parent 5fe6ef0 commit c7bd86a

Some content is hidden

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

52 files changed

+478
-572
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3434
refs/heads/beta: d8be84eb4499e21bd98a3500c8760540996df23b
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
37-
refs/heads/tmp: 227b46bdede794d5c8476b810bb1c30926bd9c04
37+
refs/heads/tmp: 9fb54f87cca9fa89b64c7720d8c9ac10f0905b7f
3838
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3939
refs/tags/homu-tmp: 53a183f0274316596bf9405944d4f0468d8c93e4
4040
refs/heads/gate: 97c84447b65164731087ea82685580cc81424412

branches/tmp/src/doc/trpl/SUMMARY.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
* [Looping](looping.md)
1414
* [Strings](strings.md)
1515
* [Arrays, Vectors, and Slices](arrays-vectors-and-slices.md)
16-
* [Standard Input](standard-input.md)
1716
* [Intermediate Rust](intermediate.md)
1817
* [Crates and Modules](crates-and-modules.md)
1918
* [Testing](testing.md)

branches/tmp/src/doc/trpl/standard-input.md

Lines changed: 0 additions & 166 deletions
This file was deleted.

branches/tmp/src/libcollections/btree/map.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -904,7 +904,14 @@ impl<K: Ord, V: Ord> Ord for BTreeMap<K, V> {
904904
#[stable(feature = "rust1", since = "1.0.0")]
905905
impl<K: Debug, V: Debug> Debug for BTreeMap<K, V> {
906906
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
907-
self.iter().fold(f.debug_map(), |b, (k, v)| b.entry(k, v)).finish()
907+
try!(write!(f, "{{"));
908+
909+
for (i, (k, v)) in self.iter().enumerate() {
910+
if i != 0 { try!(write!(f, ", ")); }
911+
try!(write!(f, "{:?}: {:?}", *k, *v));
912+
}
913+
914+
write!(f, "}}")
908915
}
909916
}
910917

branches/tmp/src/libcollections/btree/set.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,14 @@ impl<'a, 'b, T: Ord + Clone> BitOr<&'b BTreeSet<T>> for &'a BTreeSet<T> {
628628
#[stable(feature = "rust1", since = "1.0.0")]
629629
impl<T: Debug> Debug for BTreeSet<T> {
630630
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
631-
self.iter().fold(f.debug_set(), |b, e| b.entry(e)).finish()
631+
try!(write!(f, "{{"));
632+
633+
for (i, x) in self.iter().enumerate() {
634+
if i != 0 { try!(write!(f, ", ")); }
635+
try!(write!(f, "{:?}", *x));
636+
}
637+
638+
write!(f, "}}")
632639
}
633640
}
634641

branches/tmp/src/libcollections/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
#![feature(str_char)]
4141
#![feature(convert)]
4242
#![feature(slice_patterns)]
43-
#![feature(debug_builders)]
4443
#![cfg_attr(test, feature(rand, rustc_private, test, hash, collections))]
4544
#![cfg_attr(test, allow(deprecated))] // rand
4645

branches/tmp/src/libcollections/linked_list.rs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,14 @@ impl<A: Clone> Clone for LinkedList<A> {
927927
#[stable(feature = "rust1", since = "1.0.0")]
928928
impl<A: fmt::Debug> fmt::Debug for LinkedList<A> {
929929
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
930-
self.iter().fold(f.debug_list(), |b, e| b.entry(e)).finish()
930+
try!(write!(f, "["));
931+
932+
for (i, e) in self.iter().enumerate() {
933+
if i != 0 { try!(write!(f, ", ")); }
934+
try!(write!(f, "{:?}", *e));
935+
}
936+
937+
write!(f, "]")
931938
}
932939
}
933940

@@ -944,7 +951,7 @@ impl<A: Hash> Hash for LinkedList<A> {
944951
#[cfg(test)]
945952
mod test {
946953
use std::clone::Clone;
947-
use std::iter::Iterator;
954+
use std::iter::{Iterator, IteratorExt};
948955
use std::option::Option::{Some, None, self};
949956
use std::rand;
950957
use std::thread;

branches/tmp/src/libcollections/slice.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
//! iterators.
7777
//! * Further methods that return iterators are `.split()`, `.splitn()`,
7878
//! `.chunks()`, `.windows()` and more.
79+
7980
#![doc(primitive = "slice")]
8081
#![stable(feature = "rust1", since = "1.0.0")]
8182

@@ -84,7 +85,7 @@ use core::convert::AsRef;
8485
use core::clone::Clone;
8586
use core::cmp::Ordering::{self, Greater, Less};
8687
use core::cmp::{self, Ord, PartialEq};
87-
use core::iter::Iterator;
88+
use core::iter::{Iterator, IteratorExt};
8889
use core::iter::MultiplicativeIterator;
8990
use core::marker::Sized;
9091
use core::mem::size_of;
@@ -130,7 +131,7 @@ mod hack {
130131
use alloc::boxed::Box;
131132
use core::clone::Clone;
132133
#[cfg(test)]
133-
use core::iter::Iterator;
134+
use core::iter::{Iterator, IteratorExt};
134135
use core::mem;
135136
#[cfg(test)]
136137
use core::option::Option::{Some, None};

branches/tmp/src/libcollections/str.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ use self::DecompositionType::*;
5858

5959
use core::clone::Clone;
6060
use core::iter::AdditiveIterator;
61-
use core::iter::{Iterator, Extend};
61+
use core::iter::{Iterator, IteratorExt, Extend};
6262
use core::option::Option::{self, Some, None};
6363
use core::result::Result;
6464
use core::str as core_str;

branches/tmp/src/libcollections/vec_deque.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1785,7 +1785,7 @@ impl<T: fmt::Debug> fmt::Debug for VecDeque<T> {
17851785

17861786
#[cfg(test)]
17871787
mod test {
1788-
use core::iter::{Iterator, self};
1788+
use core::iter::{IteratorExt, self};
17891789
use core::option::Option::Some;
17901790

17911791
use test;

branches/tmp/src/libcollectionstest/bench.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ macro_rules! map_find_rand_bench {
6666
($name: ident, $n: expr, $map: ident) => (
6767
#[bench]
6868
pub fn $name(b: &mut ::test::Bencher) {
69-
use std::iter::Iterator;
69+
use std::iter::IteratorExt;
7070
use std::rand::Rng;
7171
use std::rand;
7272
use std::vec::Vec;

0 commit comments

Comments
 (0)