Skip to content

Commit 09220ea

Browse files
committed
---
yaml --- r: 108369 b: refs/heads/dist-snap c: 425f574 h: refs/heads/master i: 108367: 6220972 v: v3
1 parent f0fd240 commit 09220ea

File tree

16 files changed

+202
-319
lines changed

16 files changed

+202
-319
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: f64fdf524a434f0e5cd0bc91d09c144723f3c90d
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: 3a66548979e38a4687870816c0d79e7bd1bb67db
9+
refs/heads/dist-snap: 425f57477f3e1e4850c7e3c92954148e7585d2ca
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/doc/index.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,27 +24,24 @@ li {list-style-type: none; }
2424

2525
# Libraries
2626

27-
* [The standard library, `libstd`](std/index.html)
28-
* [The extra library, `libextra`](extra/index.html)
29-
30-
* [The M:N runtime library, `libgreen`](green/index.html)
31-
* [The 1:1 runtime library, `libnative`](native/index.html)
32-
33-
* [The Rust libuv library, `librustuv`](rustuv/index.html)
34-
35-
* [The Rust parser, `libsyntax`](syntax/index.html)
36-
* [The Rust compiler, `librustc`](rustc/index.html)
27+
* [The standard library, `std`](std/index.html)
3728

3829
* [The `arena` allocation library](arena/index.html)
39-
* [The `num` arbitrary precision numerics library](num/index.html)
4030
* [The `collections` library](collections/index.html)
31+
* [The `extra` library of extra stuff](extra/index.html)
4132
* [The `flate` compression library](flate/index.html)
4233
* [The `fourcc` four-character code library](fourcc/index.html)
4334
* [The `getopts` argument parsing library](getopts/index.html)
4435
* [The `glob` file path matching library](glob/index.html)
36+
* [The `green` M:N runtime library](green/index.html)
37+
* [The `native` 1:1 threading runtime](native/index.html)
38+
* [The `num` arbitrary precision numerics library](num/index.html)
39+
* [The `rustc` compiler](rustc/index.html)
40+
* [The `rustuv` M:N I/O library](rustuv/index.html)
4541
* [The `semver` version collation library](semver/index.html)
4642
* [The `serialize` value encoding/decoding library](serialize/index.html)
4743
* [The `sync` library for concurrency-enabled mechanisms and primitives](sync/index.html)
44+
* [The `syntax` library, the Rust parser](syntax/index.html)
4845
* [The `term` terminal-handling library](term/index.html)
4946
* [The `uuid` 128-bit universally unique identifier library](uuid/index.html)
5047

branches/dist-snap/src/etc/vim/syntax/rust.vim

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,9 @@ syn keyword rustTrait Buffer Writer Reader Seek
9595
syn keyword rustTrait Str StrVector StrSlice OwnedStr IntoMaybeOwned
9696
syn keyword rustTrait IterBytes
9797
syn keyword rustTrait ToStr IntoStr
98-
syn keyword rustTrait CloneableTuple ImmutableTuple
9998
syn keyword rustTrait Tuple1 Tuple2 Tuple3 Tuple4
10099
syn keyword rustTrait Tuple5 Tuple6 Tuple7 Tuple8
101100
syn keyword rustTrait Tuple9 Tuple10 Tuple11 Tuple12
102-
syn keyword rustTrait ImmutableTuple1 ImmutableTuple2 ImmutableTuple3 ImmutableTuple4
103-
syn keyword rustTrait ImmutableTuple5 ImmutableTuple6 ImmutableTuple7 ImmutableTuple8
104-
syn keyword rustTrait ImmutableTuple9 ImmutableTuple10 ImmutableTuple11 ImmutableTuple12
105101
syn keyword rustTrait ImmutableEqVector ImmutableTotalOrdVector ImmutableCloneableVector
106102
syn keyword rustTrait OwnedVector OwnedCloneableVector OwnedEqVector MutableVector
107103
syn keyword rustTrait Vector VectorVector CloneableVector ImmutableVector

branches/dist-snap/src/libcollections/btree.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -500,15 +500,15 @@ impl<K: Clone + TotalOrd, V: Clone> Branch<K, V> {
500500
let new_outcome = self.clone().rightmost_child.insert(k.clone(),
501501
v.clone(),
502502
ub.clone());
503-
new_branch = new_outcome.clone().n0();
504-
outcome = new_outcome.n1();
503+
new_branch = new_outcome.clone().val0();
504+
outcome = new_outcome.val1();
505505
}
506506
else {
507507
let new_outcome = self.clone().elts[index.unwrap()].left.insert(k.clone(),
508508
v.clone(),
509509
ub.clone());
510-
new_branch = new_outcome.clone().n0();
511-
outcome = new_outcome.n1();
510+
new_branch = new_outcome.clone().val0();
511+
outcome = new_outcome.val1();
512512
}
513513
//Check to see whether a branch or a leaf was returned from the
514514
//tree traversal.

branches/dist-snap/src/libnative/io/process.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ fn with_envp<T>(env: Option<~[(~str, ~str)]>, cb: |*c_void| -> T) -> T {
529529
let mut tmps = vec::with_capacity(env.len());
530530

531531
for pair in env.iter() {
532-
let kv = format!("{}={}", pair.first(), pair.second());
532+
let kv = format!("{}={}", *pair.ref0(), *pair.ref1());
533533
tmps.push(kv.to_c_str());
534534
}
535535

@@ -553,7 +553,7 @@ fn with_envp<T>(env: Option<~[(~str, ~str)]>, cb: |*mut c_void| -> T) -> T {
553553
let mut blk = ~[];
554554

555555
for pair in env.iter() {
556-
let kv = format!("{}={}", pair.first(), pair.second());
556+
let kv = format!("{}={}", *pair.ref0(), *pair.ref1());
557557
blk.push_all(kv.as_bytes());
558558
blk.push(0);
559559
}

branches/dist-snap/src/librustc/middle/trans/consts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ fn const_expr_unadjusted(cx: @CrateContext, e: &ast::Expr,
599599
const_eval::const_uint(i) => i as uint,
600600
_ => cx.sess.span_bug(count.span, "count must be integral const expression.")
601601
};
602-
let vs = vec::from_elem(n, const_expr(cx, elem, is_local).first());
602+
let vs = vec::from_elem(n, const_expr(cx, elem, is_local).val0());
603603
let v = if vs.iter().any(|vi| val_ty(*vi) != llunitty) {
604604
C_struct(vs, false)
605605
} else {

branches/dist-snap/src/librustc/middle/ty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4604,7 +4604,7 @@ pub fn determine_inherited_purity(parent: (ast::Purity, ast::NodeId),
46044604
// purity inferred for it, then check it under its parent's purity.
46054605
// Otherwise, use its own
46064606
match child_sigil {
4607-
ast::BorrowedSigil if child.first() == ast::ImpureFn => parent,
4607+
ast::BorrowedSigil if child.val0() == ast::ImpureFn => parent,
46084608
_ => child
46094609
}
46104610
}

branches/dist-snap/src/librustdoc/html/render.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1379,11 +1379,11 @@ fn render_methods(w: &mut Writer, it: &clean::Item) -> fmt::Result {
13791379
match c.impls.find(&it.id) {
13801380
Some(v) => {
13811381
let mut non_trait = v.iter().filter(|p| {
1382-
p.n0_ref().trait_.is_none()
1382+
p.ref0().trait_.is_none()
13831383
});
13841384
let non_trait = non_trait.to_owned_vec();
13851385
let mut traits = v.iter().filter(|p| {
1386-
p.n0_ref().trait_.is_some()
1386+
p.ref0().trait_.is_some()
13871387
});
13881388
let traits = traits.to_owned_vec();
13891389

branches/dist-snap/src/librustdoc/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ fn rust_input(cratefile: &str, matches: &getopts::Matches) -> Output {
262262
let mut pm = plugins::PluginManager::new(Path::new(path));
263263
for pass in passes.iter() {
264264
let plugin = match PASSES.iter().position(|&(p, _, _)| p == *pass) {
265-
Some(i) => PASSES[i].n1(),
265+
Some(i) => PASSES[i].val1(),
266266
None => {
267267
error!("unknown pass {}, skipping", *pass);
268268
continue

branches/dist-snap/src/libstd/iter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2611,7 +2611,7 @@ mod tests {
26112611
assert_eq!(vi.size_hint(), (10, Some(10)));
26122612

26132613
assert_eq!(c.take(5).size_hint(), (5, Some(5)));
2614-
assert_eq!(c.skip(5).size_hint().second(), None);
2614+
assert_eq!(c.skip(5).size_hint().val1(), None);
26152615
assert_eq!(c.take_while(|_| false).size_hint(), (0, None));
26162616
assert_eq!(c.skip_while(|_| false).size_hint(), (0, None));
26172617
assert_eq!(c.enumerate().size_hint(), (uint::MAX, None));

branches/dist-snap/src/libstd/prelude.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,6 @@ pub use io::{Buffer, Writer, Reader, Seek};
6767
pub use str::{Str, StrVector, StrSlice, OwnedStr, IntoMaybeOwned};
6868
pub use to_bytes::IterBytes;
6969
pub use to_str::{ToStr, IntoStr};
70-
pub use tuple::{CloneableTuple, ImmutableTuple};
71-
pub use tuple::{ImmutableTuple1, ImmutableTuple2, ImmutableTuple3, ImmutableTuple4};
72-
pub use tuple::{ImmutableTuple5, ImmutableTuple6, ImmutableTuple7, ImmutableTuple8};
73-
pub use tuple::{ImmutableTuple9, ImmutableTuple10, ImmutableTuple11, ImmutableTuple12};
7470
pub use tuple::{Tuple1, Tuple2, Tuple3, Tuple4};
7571
pub use tuple::{Tuple5, Tuple6, Tuple7, Tuple8};
7672
pub use tuple::{Tuple9, Tuple10, Tuple11, Tuple12};

branches/dist-snap/src/libstd/str.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -567,14 +567,14 @@ impl<'a> Iterator<&'a str> for StrSplits<'a> {
567567
// Helper functions used for Unicode normalization
568568
fn canonical_sort(comb: &mut [(char, u8)]) {
569569
use iter::range;
570-
use tuple::CloneableTuple;
570+
use tuple::Tuple2;
571571

572572
let len = comb.len();
573573
for i in range(0, len) {
574574
let mut swapped = false;
575575
for j in range(1, len-i) {
576-
let classA = comb[j-1].second();
577-
let classB = comb[j].second();
576+
let classA = *comb[j-1].ref1();
577+
let classB = *comb[j].ref1();
578578
if classA != 0 && classB != 0 && classA > classB {
579579
comb.swap(j-1, j);
580580
swapped = true;

branches/dist-snap/src/libstd/to_str.rs

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,6 @@ impl ToStr for () {
4040
fn to_str(&self) -> ~str { ~"()" }
4141
}
4242

43-
impl<A:ToStr> ToStr for (A,) {
44-
#[inline]
45-
fn to_str(&self) -> ~str {
46-
match *self {
47-
(ref a,) => {
48-
format!("({},)", (*a).to_str())
49-
}
50-
}
51-
}
52-
}
53-
5443
impl<A:ToStr+Hash+Eq, B:ToStr> ToStr for HashMap<A, B> {
5544
#[inline]
5645
fn to_str(&self) -> ~str {
@@ -91,36 +80,6 @@ impl<A:ToStr+Hash+Eq> ToStr for HashSet<A> {
9180
}
9281
}
9382
94-
impl<A:ToStr,B:ToStr> ToStr for (A, B) {
95-
#[inline]
96-
fn to_str(&self) -> ~str {
97-
// FIXME(#4653): this causes an llvm assertion
98-
//let &(ref a, ref b) = self;
99-
match *self {
100-
(ref a, ref b) => {
101-
format!("({}, {})", (*a).to_str(), (*b).to_str())
102-
}
103-
}
104-
}
105-
}
106-
107-
impl<A:ToStr,B:ToStr,C:ToStr> ToStr for (A, B, C) {
108-
#[inline]
109-
fn to_str(&self) -> ~str {
110-
// FIXME(#4653): this causes an llvm assertion
111-
//let &(ref a, ref b, ref c) = self;
112-
match *self {
113-
(ref a, ref b, ref c) => {
114-
format!("({}, {}, {})",
115-
(*a).to_str(),
116-
(*b).to_str(),
117-
(*c).to_str()
118-
)
119-
}
120-
}
121-
}
122-
}
123-
12483
impl<'a,A:ToStr> ToStr for &'a [A] {
12584
#[inline]
12685
fn to_str(&self) -> ~str {
@@ -178,13 +137,6 @@ mod tests {
178137
assert_eq!((~"hi").to_str(), ~"hi");
179138
}
180139
181-
#[test]
182-
fn test_tuple_types() {
183-
assert_eq!((1, 2).to_str(), ~"(1, 2)");
184-
assert_eq!((~"a", ~"b", false).to_str(), ~"(a, b, false)");
185-
assert_eq!(((), ((), 100)).to_str(), ~"((), ((), 100))");
186-
}
187-
188140
#[test]
189141
fn test_vectors() {
190142
let x: ~[int] = ~[];

0 commit comments

Comments
 (0)