Skip to content

Commit 3f40a3c

Browse files
committed
---
yaml --- r: 85942 b: refs/heads/dist-snap c: 31fa865 h: refs/heads/master v: v3
1 parent 6ac59b3 commit 3f40a3c

File tree

15 files changed

+42
-42
lines changed

15 files changed

+42
-42
lines changed

[refs]

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

branches/dist-snap/src/libextra/json.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -1164,9 +1164,6 @@ impl Ord for Json {
11641164
}
11651165
}
11661166
}
1167-
fn le(&self, other: &Json) -> bool { !(*other).lt(&(*self)) }
1168-
fn ge(&self, other: &Json) -> bool { !(*self).lt(other) }
1169-
fn gt(&self, other: &Json) -> bool { (*other).lt(&(*self)) }
11701167
}
11711168

11721169
/// A trait for converting values to JSON

branches/dist-snap/src/libextra/num/rational.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ macro_rules! cmp_impl {
107107
}
108108
cmp_impl!(impl Eq, eq, ne)
109109
cmp_impl!(impl TotalEq, equals)
110-
cmp_impl!(impl Ord, lt, gt, le, ge)
110+
cmp_impl!(impl Ord, lt)
111111
cmp_impl!(impl TotalOrd, cmp -> cmp::Ordering)
112112

113113
impl<T: Clone + Integer + Ord> Orderable for Ratio<T> {

branches/dist-snap/src/libextra/semver.rs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -37,18 +37,6 @@ impl cmp::Ord for Identifier {
3737
(&AlphaNumeric(_), _) => false
3838
}
3939
}
40-
#[inline]
41-
fn le(&self, other: &Identifier) -> bool {
42-
! (other < self)
43-
}
44-
#[inline]
45-
fn gt(&self, other: &Identifier) -> bool {
46-
other < self
47-
}
48-
#[inline]
49-
fn ge(&self, other: &Identifier) -> bool {
50-
! (self < other)
51-
}
5240
}
5341

5442
impl ToStr for Identifier {

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

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
2+
// file at the top-level directory of this distribution and at
3+
// http://rust-lang.org/COPYRIGHT.
4+
//
5+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6+
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8+
// option. This file may not be copied, modified, or distributed
9+
// except according to those terms.
10+
11+
/*! Times trait
12+
13+
~~~ {.rust}
14+
use iter::Times;
15+
let ten = 10 as uint;
16+
let mut accum = 0;
17+
do ten.times { accum += 1; }
18+
~~~
19+
20+
*/
21+
22+
#[allow(missing_doc)]
23+
pub trait Times {
24+
fn times(&self, it: &fn());
25+
}
26+

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

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -80,19 +80,6 @@ pub trait Signed: Num
8080

8181
pub trait Unsigned: Num {}
8282

83-
/// Times trait
84-
///
85-
/// ~~~ {.rust}
86-
/// use num::Times;
87-
/// let ten = 10 as uint;
88-
/// let mut accum = 0;
89-
/// do ten.times { accum += 1; }
90-
/// ~~~
91-
///
92-
pub trait Times {
93-
fn times(&self, it: &fn());
94-
}
95-
9683
pub trait Integer: Num
9784
+ Orderable
9885
+ Div<Self,Self>

branches/dist-snap/src/libstd/num/uint.rs

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

1111
//! Operations and constants for `uint`
1212
13-
use num;
13+
use iter;
1414
use sys;
1515

1616
pub use self::generated::*;
@@ -70,7 +70,7 @@ pub fn div_round(x: uint, y: uint) -> uint {
7070
///
7171
pub fn div_floor(x: uint, y: uint) -> uint { return x / y; }
7272

73-
impl num::Times for uint {
73+
impl iter::Times for uint {
7474
#[inline]
7575
///
7676
/// A convenience form for basic repetition. Given a uint `x`,
@@ -162,7 +162,7 @@ fn test_div() {
162162

163163
#[test]
164164
pub fn test_times() {
165-
use num::Times;
165+
use iter::Times;
166166
let ten = 10 as uint;
167167
let mut accum = 0;
168168
do ten.times { accum += 1; }

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ pub use cmp::{Eq, ApproxEq, Ord, TotalEq, TotalOrd, Ordering, Less, Equal, Great
4949
pub use char::Char;
5050
pub use container::{Container, Mutable, Map, MutableMap, Set, MutableSet};
5151
pub use hash::Hash;
52-
pub use num::Times;
52+
pub use iter::Times;
5353
pub use iterator::{FromIterator, Extendable};
5454
pub use iterator::{Iterator, DoubleEndedIterator, RandomAccessIterator, ClonableIterator};
5555
pub use iterator::{OrdIterator, MutableDoubleEndedIterator};

branches/dist-snap/src/libstd/rt/comm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ mod test {
718718
use option::*;
719719
use rt::test::*;
720720
use cell::Cell;
721-
use num::Times;
721+
use iter::Times;
722722
use rt::util;
723723

724724
#[test]

branches/dist-snap/src/libstd/rt/sched.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1114,7 +1114,7 @@ mod test {
11141114
#[test]
11151115
fn multithreading() {
11161116
use rt::comm::*;
1117-
use num::Times;
1117+
use iter::Times;
11181118
use vec::OwnedVector;
11191119
use container::Container;
11201120

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ pub fn select2<TA, A: SelectPort<TA>, TB, B: SelectPort<TB>>(mut a: A, mut b: B)
126126
mod test {
127127
use super::*;
128128
use clone::Clone;
129-
use num::Times;
129+
use iter::Times;
130130
use option::*;
131131
use rt::comm::*;
132132
use rt::test::*;

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ pub mod borrow;
140140
pub mod from_str;
141141
#[path = "num/num.rs"]
142142
pub mod num;
143+
pub mod iter;
143144
pub mod iterator;
144145
pub mod to_str;
145146
pub mod to_bytes;
@@ -219,3 +220,4 @@ mod std {
219220
pub use fmt;
220221
pub use to_bytes;
221222
}
223+

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use char;
2121
use char::Char;
2222
use clone::{Clone, DeepClone};
2323
use container::{Container, Mutable};
24-
use num::Times;
24+
use iter::Times;
2525
use iterator::{Iterator, FromIterator, Extendable};
2626
use iterator::{Filter, AdditiveIterator, Map};
2727
use iterator::{Invert, DoubleEndedIterator};

branches/dist-snap/src/libuv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit d88cf5652a1afb23939da0bae86c70ec521b9921
1+
Subproject commit ef2bcd134164adcaa072dcb56e62b737fdcb075e

branches/dist-snap/src/llvm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 08a3bd96ee6e1d141494f0014ede75d9871114c4
1+
Subproject commit 0964c68ddf2c67ce455e7443a06f4bb3db9e92bb

0 commit comments

Comments
 (0)