Skip to content

Commit 56957e4

Browse files
committed
---
yaml --- r: 139189 b: refs/heads/try2 c: 1616ffd h: refs/heads/master i: 139187: 05b0acf v: v3
1 parent 15ece06 commit 56957e4

File tree

83 files changed

+300
-255
lines changed

Some content is hidden

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

83 files changed

+300
-255
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: f8323397aa3c7358d3c2d3fb62038768b26bfdad
8+
refs/heads/try2: 1616ffd0c2627502b1015b6388480ed7429ef042
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/compiletest/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
use core::prelude::*;
1212

13-
#[deriving_eq]
13+
#[deriving(Eq)]
1414
pub enum mode {
1515
mode_compile_fail,
1616
mode_run_fail,

branches/try2/src/libcore/cmp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub trait Eq {
3737
pure fn ne(&self, other: &Self) -> bool;
3838
}
3939

40-
#[deriving_eq]
40+
#[deriving(Eq)]
4141
pub enum Ordering { Less, Equal, Greater }
4242

4343
/// Trait for types that form a total order

branches/try2/src/libcore/either.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use result;
1717
use vec;
1818

1919
/// The either type
20-
#[deriving_eq]
20+
#[deriving(Eq)]
2121
pub enum Either<T, U> {
2222
Left(T),
2323
Right(U)

branches/try2/src/libcore/io.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ pub pure fn with_str_reader<T>(s: &str, f: &fn(@Reader) -> T) -> T {
658658
pub enum FileFlag { Append, Create, Truncate, NoFlag, }
659659
660660
// What type of writer are we?
661-
#[deriving_eq]
661+
#[deriving(Eq)]
662662
pub enum WriterType { Screen, File }
663663
664664
// FIXME (#2004): Seekable really should be orthogonal.

branches/try2/src/libcore/option.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ use iter::{BaseIter, MutableIter};
5252
#[cfg(test)] use str;
5353

5454
/// The option type
55-
#[deriving_eq]
55+
#[deriving(Eq)]
5656
pub enum Option<T> {
5757
None,
5858
Some(T),

branches/try2/src/libcore/path.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use option::{None, Option, Some};
2020
use str;
2121
use to_str::ToStr;
2222

23-
#[deriving_eq]
23+
#[deriving(Eq)]
2424
pub struct WindowsPath {
2525
host: Option<~str>,
2626
device: Option<~str>,
@@ -32,7 +32,7 @@ pub pure fn WindowsPath(s: &str) -> WindowsPath {
3232
GenericPath::from_str(s)
3333
}
3434

35-
#[deriving_eq]
35+
#[deriving(Eq)]
3636
pub struct PosixPath {
3737
is_absolute: bool,
3838
components: ~[~str],

branches/try2/src/libcore/result.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use option::{None, Option, Some};
2020
use vec;
2121

2222
/// The result type
23-
#[deriving_eq]
23+
#[deriving(Eq)]
2424
pub enum Result<T, U> {
2525
/// Contains the successful result value
2626
Ok(T),

branches/try2/src/libcore/str.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ pub pure fn split_str_nonempty(s: &'a str, sep: &'b str) -> ~[~str] {
618618
pub fn levdistance(s: &str, t: &str) -> uint {
619619

620620
let slen = s.len();
621-
let tlen = s.len();
621+
let tlen = t.len();
622622

623623
if slen == 0 { return tlen; }
624624
if tlen == 0 { return slen; }
@@ -630,7 +630,7 @@ pub fn levdistance(s: &str, t: &str) -> uint {
630630
let mut current = i;
631631
dcol[0] = current + 1;
632632

633-
for s.each_chari |j, tc| {
633+
for t.each_chari |j, tc| {
634634

635635
let mut next = dcol[j + 1];
636636

branches/try2/src/libcore/task/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ pub mod rt;
5050
pub mod spawn;
5151

5252
/// A handle to a scheduler
53-
#[deriving_eq]
53+
#[deriving(Eq)]
5454
pub enum Scheduler {
5555
SchedulerHandle(sched_id)
5656
}
5757

5858
/// A handle to a task
59-
#[deriving_eq]
59+
#[deriving(Eq)]
6060
pub enum Task {
6161
TaskHandle(task_id)
6262
}
@@ -88,7 +88,7 @@ impl Eq for TaskResult {
8888
}
8989

9090
/// Scheduler modes
91-
#[deriving_eq]
91+
#[deriving(Eq)]
9292
pub enum SchedMode {
9393
/// Run task on the default scheduler
9494
DefaultScheduler,

branches/try2/src/libcore/unstable/extfmt.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,13 @@ pub mod ct {
9797
use prelude::*;
9898
use str;
9999

100-
#[deriving_eq]
100+
#[deriving(Eq)]
101101
pub enum Signedness { Signed, Unsigned, }
102102

103-
#[deriving_eq]
103+
#[deriving(Eq)]
104104
pub enum Caseness { CaseUpper, CaseLower, }
105105

106-
#[deriving_eq]
106+
#[deriving(Eq)]
107107
pub enum Ty {
108108
TyBool,
109109
TyStr,
@@ -116,7 +116,7 @@ pub mod ct {
116116
TyPoly,
117117
}
118118

119-
#[deriving_eq]
119+
#[deriving(Eq)]
120120
pub enum Flag {
121121
FlagLeftJustify,
122122
FlagLeftZeroPad,
@@ -125,15 +125,15 @@ pub mod ct {
125125
FlagAlternate,
126126
}
127127

128-
#[deriving_eq]
128+
#[deriving(Eq)]
129129
pub enum Count {
130130
CountIs(uint),
131131
CountIsParam(uint),
132132
CountIsNextParam,
133133
CountImplied,
134134
}
135135

136-
#[deriving_eq]
136+
#[deriving(Eq)]
137137
struct Parsed<T> {
138138
val: T,
139139
next: uint
@@ -146,7 +146,7 @@ pub mod ct {
146146
}
147147

148148
// A formatted conversion from an expression to a string
149-
#[deriving_eq]
149+
#[deriving(Eq)]
150150
pub struct Conv {
151151
param: Option<uint>,
152152
flags: ~[Flag],
@@ -156,7 +156,7 @@ pub mod ct {
156156
}
157157

158158
// A fragment of the output sequence
159-
#[deriving_eq]
159+
#[deriving(Eq)]
160160
pub enum Piece { PieceString(~str), PieceConv(Conv), }
161161

162162
pub type ErrorFn = @fn(&str) -> !;
@@ -596,7 +596,7 @@ pub mod rt {
596596
};
597597
}
598598
599-
#[deriving_eq]
599+
#[deriving(Eq)]
600600
pub enum PadMode { PadSigned, PadUnsigned, PadNozero, PadFloat }
601601
602602
pub fn pad(cv: Conv, s: ~str, mode: PadMode) -> ~str {

branches/try2/src/libfuzzer/fuzzer.rc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ use syntax::parse;
3939
use syntax::print::pprust;
4040
use syntax::diagnostic;
4141

42-
#[deriving_eq]
42+
#[deriving(Eq)]
4343
pub enum test_mode { tm_converge, tm_run, }
4444

4545
pub struct Context { mode: test_mode } // + rng

branches/try2/src/librustc/back/link.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ use syntax::ast_map::{path, path_mod, path_name};
3838
use syntax::attr;
3939
use syntax::print::pprust;
4040

41-
#[deriving_eq]
41+
#[deriving(Eq)]
4242
pub enum output_type {
4343
output_type_none,
4444
output_type_bitcode,

branches/try2/src/librustc/driver/driver.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ pub fn parse_input(sess: Session, +cfg: ast::crate_cfg, input: input)
161161
}
162162
}
163163

164-
#[deriving_eq]
164+
#[deriving(Eq)]
165165
pub enum compile_upto {
166166
cu_parse,
167167
cu_expand,

branches/try2/src/librustc/driver/session.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ use syntax::parse::ParseSess;
2727
use syntax::{ast, codemap};
2828
use syntax;
2929

30-
#[deriving_eq]
30+
#[deriving(Eq)]
3131
pub enum os { os_win32, os_macos, os_linux, os_android, os_freebsd, }
3232

33-
#[deriving_eq]
33+
#[deriving(Eq)]
3434
pub enum arch { arch_x86, arch_x86_64, arch_arm, arch_mips, }
3535

3636
pub enum crate_type { bin_crate, lib_crate, unknown_crate, }
@@ -104,7 +104,7 @@ pub fn debugging_opts_map() -> ~[(~str, ~str, uint)] {
104104
]
105105
}
106106

107-
#[deriving_eq]
107+
#[deriving(Eq)]
108108
pub enum OptLevel {
109109
No, // -O0
110110
Less, // -O1

branches/try2/src/librustc/lib/llvm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ pub enum RealPredicate {
127127

128128
// enum for the LLVM TypeKind type - must stay in sync with the def of
129129
// LLVMTypeKind in llvm/include/llvm-c/Core.h
130-
#[deriving_eq]
130+
#[deriving(Eq)]
131131
pub enum TypeKind {
132132
Void = 0,
133133
Half = 1,

branches/try2/src/librustc/metadata/decoder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ fn lookup_item(item_id: int, data: @~[u8]) -> ebml::Doc {
9393
}
9494
}
9595

96-
#[deriving_eq]
96+
#[deriving(Eq)]
9797
enum Family {
9898
Const, // c
9999
Fn, // f

branches/try2/src/librustc/middle/borrowck/check_loans.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ struct CheckLoanCtxt {
5151
}
5252

5353
// if we are enforcing purity, why are we doing so?
54-
#[deriving_eq]
54+
#[deriving(Eq)]
5555
enum purity_cause {
5656
// enforcing purity because fn was declared pure:
5757
pc_pure_fn,
@@ -80,7 +80,7 @@ pub fn check_loans(bccx: @BorrowckCtxt,
8080
visit::visit_crate(*crate, clcx, vt);
8181
}
8282

83-
#[deriving_eq]
83+
#[deriving(Eq)]
8484
enum assignment_type {
8585
at_straight_up,
8686
at_swap

branches/try2/src/librustc/middle/borrowck/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ pub type root_map = HashMap<root_map_key, RootInfo>;
340340
// if you have an expression `x.f` and x has type ~@T, we could add an
341341
// entry {id:x, derefs:0} to refer to `x` itself, `{id:x, derefs:1}`
342342
// to refer to the deref of the unique pointer, and so on.
343-
#[deriving_eq]
343+
#[deriving(Eq)]
344344
pub struct root_map_key {
345345
id: ast::node_id,
346346
derefs: uint
@@ -355,7 +355,7 @@ pub type mutbl_map = HashMap<ast::node_id, ()>;
355355
pub type write_guard_map = HashMap<root_map_key, ()>;
356356

357357
// Errors that can occur
358-
#[deriving_eq]
358+
#[deriving(Eq)]
359359
pub enum bckerr_code {
360360
err_mut_uniq,
361361
err_mut_variant,
@@ -367,7 +367,7 @@ pub enum bckerr_code {
367367

368368
// Combination of an error code and the categorization of the expression
369369
// that caused it
370-
#[deriving_eq]
370+
#[deriving(Eq)]
371371
pub struct bckerr {
372372
cmt: cmt,
373373
code: bckerr_code
@@ -382,7 +382,7 @@ pub enum MoveError {
382382
// shorthand for something that fails with `bckerr` or succeeds with `T`
383383
pub type bckres<T> = Result<T, bckerr>;
384384

385-
#[deriving_eq]
385+
#[deriving(Eq)]
386386
pub enum LoanKind {
387387
TotalFreeze, // Entire path is frozen (borrowed as &T)
388388
PartialFreeze, // Some subpath is frozen (borrowed as &T)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ pub type matrix = ~[~[@pat]];
183183
184184
pub enum useful { useful(ty::t, ctor), useful_, not_useful }
185185
186-
#[deriving_eq]
186+
#[deriving(Eq)]
187187
pub enum ctor {
188188
single,
189189
variant(def_id),

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ pub fn process_crate(crate: @ast::crate,
240240

241241
// FIXME (#33): this doesn't handle big integer/float literals correctly
242242
// (nor does the rest of our literal handling).
243-
#[deriving_eq]
243+
#[deriving(Eq)]
244244
pub enum const_val {
245245
const_float(f64),
246246
const_int(i64),

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ use syntax::{ast, ast_util, visit};
6060
* process.
6161
*/
6262

63-
#[deriving_eq]
63+
#[deriving(Eq)]
6464
pub enum lint {
6565
ctypes,
6666
unused_imports,
@@ -99,7 +99,7 @@ pub fn level_to_str(lv: level) -> &'static str {
9999
}
100100
}
101101

102-
#[deriving_eq]
102+
#[deriving(Eq)]
103103
pub enum level {
104104
allow, warn, deny, forbid
105105
}

0 commit comments

Comments
 (0)