Skip to content

Commit fe76ff0

Browse files
committed
---
yaml --- r: 195281 b: refs/heads/tmp c: 92f3d9a h: refs/heads/master i: 195279: e4e1e98 v: v3
1 parent 31010b9 commit fe76ff0

Some content is hidden

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

56 files changed

+467
-654
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: ccb4e8423e50fef0f13a642715c3e617ee9f78fe
37+
refs/heads/tmp: 92f3d9a6b46a116a48b0dd35b66c8f66786296d6
3838
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3939
refs/tags/homu-tmp: 53a183f0274316596bf9405944d4f0468d8c93e4
4040
refs/heads/gate: 97c84447b65164731087ea82685580cc81424412

branches/tmp/AUTHORS.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ Peter Schuller <[email protected]>
606606
Peter Williams <[email protected]>
607607
Peter Zotov <[email protected]>
608608
Petter Remen <[email protected]>
609-
Phil Dawes <[email protected]>
609+
Phil Dawes <[email protected]>
610610
Phil Ruffwind <[email protected]>
611611
Philip Munksgaard <[email protected]>
612612
Philipp Brüschweiler <[email protected]>

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/documentation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ can be useful when changing some options, or when writing a macro.
517517

518518
### Re-exports
519519

520-
`rustdoc` will show the documentation for a publc re-export in both places:
520+
`rustdoc` will show the documentation for a public re-export in both places:
521521

522522
```ignore
523523
extern crate foo;

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: 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/tmp/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/tmp/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/tmp/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/tmp/src/libcollections/slice.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
//!
5151
//! ## Iteration
5252
//!
53-
//! The slices implement `IntoIterator`. The iterators of yield references
54-
//! to the slice elements.
53+
//! The slices implement `IntoIterator`. The iterator yields references to the
54+
//! slice elements.
5555
//!
5656
//! ```
5757
//! let numbers = &[0, 1, 2];
@@ -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/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, 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/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::{IteratorExt, self};
1788+
use core::iter::{Iterator, 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::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)