Skip to content

Commit be7d44e

Browse files
committed
---
yaml --- r: 195119 b: refs/heads/beta c: ef94b8a h: refs/heads/master i: 195117: 0086102 195115: 2a3eef2 195111: f1fcf58 195103: 12812cb v: v3
1 parent 147e659 commit be7d44e

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

+405
-645
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
3232
refs/heads/batch: b7fd822592a4fb577552d93010c4a4e14f314346
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
34-
refs/heads/beta: bd66f57e469b89a0b8ffbe273cac26c02cdf9874
34+
refs/heads/beta: ef94b8a9d3e915318029b83e39af63861ca44952
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
3737
refs/heads/tmp: be7f6ac7008f8ddf980ac07026b05bdd865f29cc

branches/beta/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/beta/src/doc/trpl/standard-input.md

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

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -904,14 +904,7 @@ 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-
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, "}}")
907+
self.iter().fold(f.debug_map(), |b, (k, v)| b.entry(k, v)).finish()
915908
}
916909
}
917910

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -628,14 +628,7 @@ 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-
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, "}}")
631+
self.iter().fold(f.debug_set(), |b, e| b.entry(e)).finish()
639632
}
640633
}
641634

branches/beta/src/libcollections/lib.rs

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

branches/beta/src/libcollections/linked_list.rs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -927,14 +927,7 @@ 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-
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, "]")
930+
self.iter().fold(f.debug_list(), |b, e| b.entry(e)).finish()
938931
}
939932
}
940933

@@ -951,7 +944,7 @@ impl<A: Hash> Hash for LinkedList<A> {
951944
#[cfg(test)]
952945
mod test {
953946
use std::clone::Clone;
954-
use std::iter::{Iterator, IteratorExt};
947+
use std::iter::Iterator;
955948
use std::option::Option::{Some, None, self};
956949
use std::rand;
957950
use std::thread;

branches/beta/src/libcollections/slice.rs

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

@@ -85,7 +84,7 @@ use core::convert::AsRef;
8584
use core::clone::Clone;
8685
use core::cmp::Ordering::{self, Greater, Less};
8786
use core::cmp::{self, Ord, PartialEq};
88-
use core::iter::{Iterator, IteratorExt};
87+
use core::iter::Iterator;
8988
use core::iter::MultiplicativeIterator;
9089
use core::marker::Sized;
9190
use core::mem::size_of;
@@ -131,7 +130,7 @@ mod hack {
131130
use alloc::boxed::Box;
132131
use core::clone::Clone;
133132
#[cfg(test)]
134-
use core::iter::{Iterator, IteratorExt};
133+
use core::iter::Iterator;
135134
use core::mem;
136135
#[cfg(test)]
137136
use core::option::Option::{Some, None};

branches/beta/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, IteratorExt, Extend};
61+
use core::iter::{Iterator, Extend};
6262
use core::option::Option::{self, Some, None};
6363
use core::result::Result;
6464
use core::str as core_str;

branches/beta/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::{IteratorExt, self};
1788+
use core::iter::{Iterator, self};
17891789
use core::option::Option::Some;
17901790

17911791
use test;

branches/beta/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::IteratorExt;
69+
use std::iter::Iterator;
7070
use std::rand::Rng;
7171
use std::rand;
7272
use std::vec::Vec;

0 commit comments

Comments
 (0)