Skip to content

Commit ad71e23

Browse files
committed
---
yaml --- r: 118091 b: refs/heads/try c: bb96ee6 h: refs/heads/master i: 118089: ed873fe 118087: 5da6208 v: v3
1 parent e0f17b0 commit ad71e23

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
@@ -2,7 +2,7 @@
22
refs/heads/master: 3770c42a4959cbabc73da52abc7e3db96657974e
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: d6736a1440d42f6af967a8a20ab8d73522112b72
5-
refs/heads/try: 748bc3ca49de8ab0b890726120c40567094e43fc
5+
refs/heads/try: bb96ee6123082908dba86cb22344f0c23915bf06
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/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/try/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/try/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/try/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/try/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/try/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)