Skip to content

Commit 2688048

Browse files
committed
---
yaml --- r: 152303 b: refs/heads/try2 c: b45553f h: refs/heads/master i: 152301: fdb0c71 152299: 5805375 152295: 06ac97e 152287: 5b35f76 v: v3
1 parent 9e0e3fb commit 2688048

File tree

180 files changed

+847
-1075
lines changed

Some content is hidden

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

180 files changed

+847
-1075
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: 071e22ed890377840d8b38a3809860e284538b74
8+
refs/heads/try2: b45553f0755e9564454fff3c14cdee93e9241843
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ script: |
4040
if [[ $LLVM_VERSION != '3.4' ]]; then exit 0; fi
4141
fi &&
4242
make tidy &&
43-
travis_wait make -j4 rustc-stage1 &&
43+
make -j4 rustc-stage1 &&
4444
make check-stage1-std check-stage1-rpass check-stage1-cfail check-stage1-rfail check-stage1-doc
4545
4646
env:

branches/try2/AUTHORS.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ Rust was written by these fine people:
33
Aaron Laursen <[email protected]>
44
Aaron Todd <[email protected]>
55
Adam Bozanich <[email protected]>
6-
Adolfo Ochagavía <[email protected]>
76
Adrien Tétar <[email protected]>
87
Alan Andrade <[email protected]>
98
Aleksander Balicki <[email protected]>
@@ -26,6 +25,7 @@ Andrew Chin <[email protected]>
2625
Andrew Dunham <[email protected]>
2726
Andrew Paseltiner <[email protected]>
2827
Anthony Juckel <[email protected]>
28+
aochagavia <[email protected]>
2929
3030
Arkaitz Jimenez <[email protected]>
3131
Armin Ronacher <[email protected]>

branches/try2/configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1136,7 +1136,7 @@ do
11361136
CXXFLAGS=$LLVM_CXXFLAGS
11371137
LDFLAGS=$LLVM_LDFLAGS
11381138

1139-
if [ -z "$CFG_DISABLE_LIBCPP" ] && [ -n "$CFG_USING_CLANG" ]; then
1139+
if [ "$CFG_DISABLE_LIBCPP" != 1 ] && [ "$CFG_USING_CLANG" == 1 ]; then
11401140
LLVM_OPTS="$LLVM_OPTS --enable-libcpp"
11411141
fi
11421142

branches/try2/mk/crates.mk

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -60,36 +60,36 @@ DEPS_core :=
6060
DEPS_rlibc :=
6161
DEPS_alloc := core libc native:jemalloc
6262
DEPS_debug := std
63-
DEPS_std := core rand libc alloc collections native:rustrt native:backtrace
63+
DEPS_std := core rand libc alloc native:rustrt native:backtrace
6464
DEPS_graphviz := std
6565
DEPS_green := std native:context_switch
6666
DEPS_rustuv := std native:uv native:uv_support
6767
DEPS_native := std
68-
DEPS_syntax := std term serialize log fmt_macros debug
68+
DEPS_syntax := std term serialize collections log fmt_macros debug
6969
DEPS_rustc := syntax native:rustllvm flate arena serialize sync getopts \
70-
time log graphviz debug
71-
DEPS_rustdoc := rustc native:hoedown serialize sync getopts \
70+
collections time log graphviz debug
71+
DEPS_rustdoc := rustc native:hoedown serialize sync getopts collections \
7272
test time debug
7373
DEPS_flate := std native:miniz
74-
DEPS_arena := std
74+
DEPS_arena := std collections
7575
DEPS_graphviz := std
7676
DEPS_glob := std
77-
DEPS_serialize := std log
78-
DEPS_term := std log
77+
DEPS_serialize := std collections log
78+
DEPS_term := std collections log
7979
DEPS_semver := std
8080
DEPS_uuid := std serialize
8181
DEPS_sync := std alloc
8282
DEPS_getopts := std
83-
DEPS_collections := core alloc
83+
DEPS_collections := std debug
8484
DEPS_fourcc := syntax std
8585
DEPS_hexfloat := syntax std
8686
DEPS_num := std
87-
DEPS_test := std getopts serialize term time regex
87+
DEPS_test := std collections getopts serialize term time regex
8888
DEPS_time := std serialize sync
8989
DEPS_rand := core
90-
DEPS_url := std
90+
DEPS_url := std collections
9191
DEPS_log := std sync
92-
DEPS_regex := std
92+
DEPS_regex := std collections
9393
DEPS_regex_macros = syntax std regex
9494
DEPS_fmt_macros = std
9595

@@ -105,7 +105,6 @@ ONLY_RLIB_libc := 1
105105
ONLY_RLIB_rlibc := 1
106106
ONLY_RLIB_alloc := 1
107107
ONLY_RLIB_rand := 1
108-
ONLY_RLIB_collections := 1
109108

110109
################################################################################
111110
# You should not need to edit below this line

branches/try2/src/compiletest/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pub fn load_errors(re: &Regex, testfile: &Path) -> Vec<ExpectedError> {
3131
fn parse_expected(line_num: uint, line: &str, re: &Regex) -> Option<ExpectedError> {
3232
re.captures(line).and_then(|caps| {
3333
let adjusts = caps.name("adjusts").len();
34-
let kind = caps.name("kind").to_ascii().to_lower().into_str();
34+
let kind = caps.name("kind").to_ascii().to_lower().into_str().to_string();
3535
let msg = caps.name("msg").trim().to_string();
3636

3737
debug!("line={} kind={} msg={}", line_num, kind, msg);

branches/try2/src/compiletest/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pub fn make_new_path(path: &str) -> String {
4141
Some(curr) => {
4242
format!("{}{}{}", path, path_div(), curr)
4343
}
44-
None => path.to_str()
44+
None => path.to_str().to_string()
4545
}
4646
}
4747

branches/try2/src/doc/complement-cheatsheet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Use [`ToStr`](std/to_str/trait.ToStr.html).
88

99
~~~
1010
let x: int = 42;
11-
let y: String = x.to_str();
11+
let y: String = x.to_str().to_string();
1212
~~~
1313

1414
**String to int**

branches/try2/src/doc/guide-lifetimes.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ Despite their complete safety, a reference's representation at runtime
1414
is the same as that of an ordinary pointer in a C program. They introduce zero
1515
overhead. The compiler does all safety checks at compile time.
1616

17-
Although references have rather elaborate theoretical underpinnings
18-
(e.g. region pointers), the core concepts will be familiar to anyone
19-
who has worked with C or C++. The best way to explain how they are
17+
Although references have rather elaborate theoretical underpinnings usually
18+
introduced as (e.g. region pointers), the core concepts will be familiar to
19+
anyone who has worked with C or C++. The best way to explain how they are
2020
used—and their limitations—is probably just to work through several examples.
2121

2222
# By example

branches/try2/src/doc/guide-tasks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ fn stringifier(channel: &sync::DuplexStream<String, uint>) {
467467
let mut value: uint;
468468
loop {
469469
value = channel.recv();
470-
channel.send(value.to_str());
470+
channel.send(value.to_str().to_string());
471471
if value == 0 { break; }
472472
}
473473
}
@@ -492,7 +492,7 @@ extern crate sync;
492492
# let mut value: uint;
493493
# loop {
494494
# value = channel.recv();
495-
# channel.send(value.to_str());
495+
# channel.send(value.to_str().to_string());
496496
# if value == 0u { break; }
497497
# }
498498
# }

branches/try2/src/doc/rust.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3579,7 +3579,7 @@ trait Printable {
35793579
}
35803580
35813581
impl Printable for int {
3582-
fn to_string(&self) -> String { self.to_str() }
3582+
fn to_string(&self) -> String { self.to_str().to_string() }
35833583
}
35843584
35853585
fn print(a: Box<Printable>) {

branches/try2/src/doc/tutorial.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2058,7 +2058,8 @@ illegal to copy and pass by value.
20582058
Generic `type`, `struct`, and `enum` declarations follow the same pattern:
20592059

20602060
~~~~
2061-
type Set<T> = std::collections::HashMap<T, ()>;
2061+
extern crate collections;
2062+
type Set<T> = collections::HashMap<T, ()>;
20622063
20632064
struct Stack<T> {
20642065
elements: Vec<T>

branches/try2/src/etc/licenseck.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
"libstd/sync/spsc_queue.rs", # BSD
4343
"libstd/sync/mpmc_bounded_queue.rs", # BSD
4444
"libsync/mpsc_intrusive.rs", # BSD
45-
"test/bench/shootout-meteor.rs", # BSD
4645
]
4746

4847
def check_license(name, contents):

branches/try2/src/libarena/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
html_root_url = "http://doc.rust-lang.org/")]
2929
#![allow(missing_doc)]
3030

31+
extern crate collections;
32+
3133
use std::cell::{Cell, RefCell};
3234
use std::cmp;
3335
use std::intrinsics::{TyDesc, get_tydesc};

branches/try2/src/libcollections/bitv.rs

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,14 @@
1010

1111
#![allow(missing_doc)]
1212

13-
use core::prelude::*;
1413

15-
use core::cmp;
16-
use core::fmt;
17-
use core::iter::{Enumerate, Repeat, Map, Zip};
18-
use core::ops;
19-
use core::slice;
20-
use core::uint;
21-
22-
use vec::Vec;
14+
use std::cmp;
15+
use std::fmt;
16+
use std::iter::RandomAccessIterator;
17+
use std::iter::{Enumerate, Repeat, Map, Zip};
18+
use std::ops;
19+
use std::slice;
20+
use std::uint;
2321

2422
#[deriving(Clone)]
2523
struct SmallBitv {
@@ -979,26 +977,26 @@ impl<'a> Iterator<uint> for BitPositions<'a> {
979977

980978
#[cfg(test)]
981979
mod tests {
982-
use std::prelude::*;
983-
use std::uint;
984-
use std::rand;
985-
use std::rand::Rng;
986-
use test::Bencher;
980+
extern crate test;
981+
use self::test::Bencher;
987982

988983
use bitv::{Bitv, SmallBitv, BigBitv, BitvSet, from_bools, from_fn,
989984
from_bytes};
990985
use bitv;
991-
use vec::Vec;
986+
987+
use std::uint;
988+
use std::rand;
989+
use std::rand::Rng;
992990

993991
static BENCH_BITS : uint = 1 << 14;
994992

995993
#[test]
996994
fn test_to_str() {
997995
let zerolen = Bitv::new(0u, false);
998-
assert_eq!(zerolen.to_str().as_slice(), "");
996+
assert_eq!(zerolen.to_str(), "".to_string());
999997

1000998
let eightbits = Bitv::new(8u, false);
1001-
assert_eq!(eightbits.to_str().as_slice(), "00000000")
999+
assert_eq!(eightbits.to_str(), "00000000".to_string());
10021000
}
10031001

10041002
#[test]
@@ -1021,7 +1019,7 @@ mod tests {
10211019
let mut b = bitv::Bitv::new(2, false);
10221020
b.set(0, true);
10231021
b.set(1, false);
1024-
assert_eq!(b.to_str().as_slice(), "10");
1022+
assert_eq!(b.to_str(), "10".to_string());
10251023
}
10261024

10271025
#[test]
@@ -1332,7 +1330,7 @@ mod tests {
13321330
fn test_from_bytes() {
13331331
let bitv = from_bytes([0b10110110, 0b00000000, 0b11111111]);
13341332
let str = format!("{}{}{}", "10110110", "00000000", "11111111");
1335-
assert_eq!(bitv.to_str().as_slice(), str.as_slice());
1333+
assert_eq!(bitv.to_str(), str);
13361334
}
13371335

13381336
#[test]
@@ -1349,8 +1347,8 @@ mod tests {
13491347

13501348
#[test]
13511349
fn test_from_bools() {
1352-
assert!(from_bools([true, false, true, true]).to_str().as_slice() ==
1353-
"1011");
1350+
assert!(from_bools([true, false, true, true]).to_str() ==
1351+
"1011".to_string());
13541352
}
13551353

13561354
#[test]

branches/try2/src/libcollections/btree.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,8 @@
1818
///a length (the height of the tree), and lower and upper bounds on the
1919
///number of elements that a given node can contain.
2020
21-
use core::prelude::*;
22-
23-
use alloc::owned::Box;
24-
use core::fmt;
25-
use core::fmt::Show;
26-
27-
use vec::Vec;
21+
use std::fmt;
22+
use std::fmt::Show;
2823

2924
#[allow(missing_doc)]
3025
pub struct BTree<K, V> {
@@ -777,7 +772,6 @@ impl<K: fmt::Show + Ord, V: fmt::Show> fmt::Show for BranchElt<K, V> {
777772

778773
#[cfg(test)]
779774
mod test_btree {
780-
use std::prelude::*;
781775

782776
use super::{BTree, Node, LeafElt};
783777

branches/try2/src/libcollections/deque.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
//! Container traits for collections
1212
13-
use core::prelude::*;
13+
use std::container::Mutable;
1414

1515
/// A double-ended sequence that allows querying, insertion and deletion at both ends.
1616
pub trait Deque<T> : Mutable {
@@ -41,10 +41,11 @@ pub trait Deque<T> : Mutable {
4141

4242
#[cfg(test)]
4343
pub mod bench {
44-
use std::prelude::*;
44+
extern crate test;
45+
use self::test::Bencher;
46+
use std::container::MutableMap;
4547
use std::rand;
4648
use std::rand::Rng;
47-
use test::Bencher;
4849

4950
pub fn insert_rand_n<M:MutableMap<uint,uint>>(n: uint,
5051
map: &mut M,

branches/try2/src/libcollections/dlist.rs

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,9 @@
2121
// Backlinks over DList::prev are raw pointers that form a full chain in
2222
// the reverse direction.
2323

24-
use core::prelude::*;
25-
26-
use alloc::owned::Box;
27-
use core::iter;
28-
use core::mem;
29-
use core::ptr;
24+
use std::iter;
25+
use std::mem;
26+
use std::ptr;
3027

3128
use deque::Deque;
3229

@@ -610,14 +607,11 @@ impl<A: Clone> Clone for DList<A> {
610607

611608
#[cfg(test)]
612609
mod tests {
613-
use std::prelude::*;
614-
use std::rand;
615-
use test::Bencher;
616-
use test;
617-
610+
extern crate test;
611+
use self::test::Bencher;
618612
use deque::Deque;
613+
use std::rand;
619614
use super::{DList, Node, ListInsertion};
620-
use vec::Vec;
621615

622616
pub fn check_links<T>(list: &DList<T>) {
623617
let mut len = 0u;

branches/try2/src/libcollections/enum_set.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
//! This module defines a container which uses an efficient bit mask
1414
//! representation to hold C-like enum variants.
1515
16-
use core::prelude::*;
17-
18-
use core::num::Bitwise;
16+
use std::num::Bitwise;
1917

2018
#[deriving(Clone, PartialEq, Eq, Hash, Show)]
2119
/// A specialized Set implementation to use enum types.
@@ -138,7 +136,7 @@ impl<E:CLike> Iterator<E> for Items<E> {
138136

139137
#[cfg(test)]
140138
mod test {
141-
use std::prelude::*;
139+
142140
use std::mem;
143141

144142
use enum_set::{EnumSet, CLike};

0 commit comments

Comments
 (0)