Skip to content

Commit 8f1d58e

Browse files
committed
---
yaml --- r: 152158 b: refs/heads/try2 c: bb96ee6 h: refs/heads/master v: v3
1 parent a586792 commit 8f1d58e

File tree

7 files changed

+14
-9
lines changed

7 files changed

+14
-9
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: 748bc3ca49de8ab0b890726120c40567094e43fc
8+
refs/heads/try2: bb96ee6123082908dba86cb22344f0c23915bf06
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/libcore/cmp.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737
//! assert!(SketchyNum {num: 25} != SketchyNum {num: 57});
3838
//! ```
3939
40+
pub use Eq = self::TotalEq;
41+
pub use Ord = self::TotalOrd;
42+
4043
/// Trait for values that can be compared for equality and inequality.
4144
///
4245
/// This trait allows partial equality, where types can be unordered instead of

branches/try2/src/libcore/iter.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2083,7 +2083,8 @@ pub struct RangeStep<A> {
20832083

20842084
/// Return an iterator over the range [start, stop) by `step`. It handles overflow by stopping.
20852085
#[inline]
2086-
pub fn range_step<A: CheckedAdd + PartialOrd + Clone + Zero>(start: A, stop: A, step: A) -> RangeStep<A> {
2086+
pub fn range_step<A: CheckedAdd + PartialOrd +
2087+
Clone + Zero>(start: A, stop: A, step: A) -> RangeStep<A> {
20872088
let rev = step < Zero::zero();
20882089
RangeStep{state: start, stop: stop, step: step, rev: rev}
20892090
}

branches/try2/src/librustc/middle/lint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1650,7 +1650,7 @@ fn check_missing_doc_item(cx: &Context, it: &ast::Item) {
16501650
desc);
16511651
}
16521652

1653-
#[deriving(Eq)]
1653+
#[deriving(PartialEq)]
16541654
enum MethodContext {
16551655
TraitDefaultImpl,
16561656
TraitImpl,

branches/try2/src/libsyntax/ext/deriving/cmp/totaleq.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ pub fn expand_deriving_totaleq(cx: &mut ExtCtxt,
2828
let block = cx.block(span, stmts, None);
2929
cx.expr_block(block)
3030
},
31-
|cx, sp, _, _| cx.span_bug(sp, "non matching enums in deriving(TotalEq)?"),
31+
|cx, sp, _, _| cx.span_bug(sp, "non matching enums in deriving(Eq)?"),
3232
cx,
3333
span,
3434
substr)
@@ -42,7 +42,7 @@ pub fn expand_deriving_totaleq(cx: &mut ExtCtxt,
4242
let trait_def = TraitDef {
4343
span: span,
4444
attributes: Vec::new(),
45-
path: Path::new(vec!("std", "cmp", "TotalEq")),
45+
path: Path::new(vec!("std", "cmp", "Eq")),
4646
additional_bounds: Vec::new(),
4747
generics: LifetimeBounds::empty(),
4848
methods: vec!(

branches/try2/src/libsyntax/ext/deriving/cmp/totalord.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ pub fn expand_deriving_totalord(cx: &mut ExtCtxt,
2828
let trait_def = TraitDef {
2929
span: span,
3030
attributes: Vec::new(),
31-
path: Path::new(vec!("std", "cmp", "TotalOrd")),
31+
path: Path::new(vec!("std", "cmp", "Ord")),
3232
additional_bounds: Vec::new(),
3333
generics: LifetimeBounds::empty(),
3434
methods: vec!(
@@ -117,7 +117,7 @@ pub fn cs_cmp(cx: &mut ExtCtxt, span: Span,
117117
let order = ordering_const(cx, span, self_var.cmp(&other_var));
118118
cx.expr_path(order)
119119
}
120-
_ => cx.span_bug(span, "not exactly 2 arguments in `deriving(TotalOrd)`")
120+
_ => cx.span_bug(span, "not exactly 2 arguments in `deriving(Ord)`")
121121
}
122122
},
123123
cx, span, substr)

branches/try2/src/libsyntax/ext/deriving/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,11 @@ pub fn expand_meta_deriving(cx: &mut ExtCtxt,
7777
"Encodable" => expand!(encodable::expand_deriving_encodable),
7878
"Decodable" => expand!(decodable::expand_deriving_decodable),
7979

80+
// NOTE: after a stage0 snap this needs treatment
8081
"PartialEq" => expand!(eq::expand_deriving_eq),
81-
"TotalEq" => expand!(totaleq::expand_deriving_totaleq),
82+
"Eq" | "TotalEq" => expand!(totaleq::expand_deriving_totaleq),
8283
"PartialOrd" => expand!(ord::expand_deriving_ord),
83-
"TotalOrd" => expand!(totalord::expand_deriving_totalord),
84+
"Ord" | "TotalOrd" => expand!(totalord::expand_deriving_totalord),
8485

8586
"Rand" => expand!(rand::expand_deriving_rand),
8687

0 commit comments

Comments
 (0)