Skip to content

Commit 9344340

Browse files
committed
---
yaml --- r: 139179 b: refs/heads/try2 c: 9966eaa h: refs/heads/master i: 139177: 8b767c6 139175: 2b4707b v: v3
1 parent 8dca72d commit 9344340

File tree

21 files changed

+63
-63
lines changed

21 files changed

+63
-63
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: 72d7d601558e8f3cb6ef008ecaa76bf0ed67890c
8+
refs/heads/try2: 9966eaaba4d08dd9eb3cbbb1a92555f23d5f1a10
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

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
}

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ use syntax::ast;
6060
use syntax::codemap::span;
6161
use syntax::print::pprust;
6262

63-
#[deriving_eq]
63+
#[deriving(Eq)]
6464
pub enum categorization {
6565
cat_rvalue, // result of eval'ing some misc expr
6666
cat_special(special_kind), //
@@ -75,7 +75,7 @@ pub enum categorization {
7575
}
7676

7777
// different kinds of pointers:
78-
#[deriving_eq]
78+
#[deriving(Eq)]
7979
pub enum ptr_kind {
8080
uniq_ptr,
8181
gc_ptr(ast::mutability),
@@ -85,7 +85,7 @@ pub enum ptr_kind {
8585

8686
// I am coining the term "components" to mean "pieces of a data
8787
// structure accessible without a dereference":
88-
#[deriving_eq]
88+
#[deriving(Eq)]
8989
pub enum comp_kind {
9090
comp_tuple, // elt in a tuple
9191
comp_anon_field, // anonymous field (in e.g.
@@ -98,15 +98,15 @@ pub enum comp_kind {
9898
}
9999

100100
// different kinds of expressions we might evaluate
101-
#[deriving_eq]
101+
#[deriving(Eq)]
102102
pub enum special_kind {
103103
sk_method,
104104
sk_static_item,
105105
sk_implicit_self, // old by-reference `self`
106106
sk_heap_upvar
107107
}
108108

109-
#[deriving_eq]
109+
#[deriving(Eq)]
110110
pub enum MutabilityCategory {
111111
McImmutable, // Immutable.
112112
McReadOnly, // Read-only (`const`)
@@ -119,7 +119,7 @@ pub enum MutabilityCategory {
119119
// which the value is stored.
120120
//
121121
// note: cmt stands for "categorized mutable type".
122-
#[deriving_eq]
122+
#[deriving(Eq)]
123123
pub struct cmt_ {
124124
id: ast::node_id, // id of expr/pat producing this value
125125
span: span, // span of same expr/pat
@@ -134,7 +134,7 @@ pub type cmt = @cmt_;
134134
// a loan path is like a category, but it exists only when the data is
135135
// interior to the stack frame. loan paths are used as the key to a
136136
// map indicating what is borrowed at any point in time.
137-
#[deriving_eq]
137+
#[deriving(Eq)]
138138
pub enum loan_path {
139139
lp_local(ast::node_id),
140140
lp_arg(ast::node_id),

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ pub fn resolve_crate(sess: Session,
389389

390390
pub type region_paramd_items = HashMap<ast::node_id, region_variance>;
391391

392-
#[deriving_eq]
392+
#[deriving(Eq)]
393393
pub struct region_dep {
394394
ambient_variance: region_variance,
395395
id: ast::node_id

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ pub struct Export2 {
122122
reexport: bool, // Whether this is a reexport.
123123
}
124124

125-
#[deriving_eq]
125+
#[deriving(Eq)]
126126
pub enum PatternBindingMode {
127127
RefutableMode,
128128
LocalIrrefutableMode,
@@ -166,7 +166,7 @@ pub enum NameDefinition {
166166

167167
}
168168

169-
#[deriving_eq]
169+
#[deriving(Eq)]
170170
pub enum Mutability {
171171
Mutable,
172172
Immutable
@@ -179,7 +179,7 @@ pub enum SelfBinding {
179179

180180
pub type ResolveVisitor = vt<()>;
181181

182-
#[deriving_eq]
182+
#[deriving(Eq)]
183183
pub enum ImportDirectiveNS {
184184
TypeNSOnly,
185185
AnyNS
@@ -271,7 +271,7 @@ pub enum MethodSort {
271271
// FIXME #4947: The X-ray flag is kind of questionable in the first
272272
// place. It might be better to introduce an expr_xray_path instead.
273273

274-
#[deriving_eq]
274+
#[deriving(Eq)]
275275
pub enum XrayFlag {
276276
NoXray, //< Private items cannot be accessed.
277277
Xray //< Private items can be accessed.
@@ -292,13 +292,13 @@ pub enum ModulePrefixResult {
292292
PrefixFound(@mut Module, uint)
293293
}
294294

295-
#[deriving_eq]
295+
#[deriving(Eq)]
296296
pub enum AllowCapturingSelfFlag {
297297
AllowCapturingSelf, //< The "self" definition can be captured.
298298
DontAllowCapturingSelf, //< The "self" definition cannot be captured.
299299
}
300300

301-
#[deriving_eq]
301+
#[deriving(Eq)]
302302
enum NameSearchType {
303303
SearchItemsAndPublicImports, //< Search items and public imports.
304304
SearchItemsAndAllImports, //< Search items and all imports.
@@ -312,7 +312,7 @@ pub enum BareIdentifierPatternResolution {
312312

313313
// Specifies how duplicates should be handled when adding a child item if
314314
// another item exists with the same name in some namespace.
315-
#[deriving_eq]
315+
#[deriving(Eq)]
316316
pub enum DuplicateCheckingMode {
317317
ForbidDuplicateModules,
318318
ForbidDuplicateTypes,

branches/try2/src/librustc/middle/trans/_match.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,7 @@ pub fn pick_col(m: &[@Match]) -> uint {
10371037
return best_col;
10381038
}
10391039
1040-
#[deriving_eq]
1040+
#[deriving(Eq)]
10411041
pub enum branch_kind { no_branch, single, switch, compare, compare_vec_len, }
10421042
10431043
// Compiles a comparison between two things.

branches/try2/src/librustc/middle/trans/common.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -335,14 +335,14 @@ pub fn warn_not_to_commit(ccx: @CrateContext, msg: &str) {
335335
}
336336
337337
// Heap selectors. Indicate which heap something should go on.
338-
#[deriving_eq]
338+
#[deriving(Eq)]
339339
pub enum heap {
340340
heap_managed,
341341
heap_managed_unique,
342342
heap_exchange,
343343
}
344344
345-
#[deriving_eq]
345+
#[deriving(Eq)]
346346
pub enum cleantype {
347347
normal_exit_only,
348348
normal_exit_and_unwind
@@ -1270,7 +1270,7 @@ pub fn is_undef(val: ValueRef) -> bool {
12701270
}
12711271
12721272
// Used to identify cached monomorphized functions and vtables
1273-
#[deriving_eq]
1273+
#[deriving(Eq)]
12741274
pub enum mono_param_id {
12751275
mono_precise(ty::t, Option<~[mono_id]>),
12761276
mono_any,
@@ -1280,7 +1280,7 @@ pub enum mono_param_id {
12801280
datum::DatumMode),
12811281
}
12821282
1283-
#[deriving_eq]
1283+
#[deriving(Eq)]
12841284
pub struct mono_id_ {
12851285
def: ast::def_id,
12861286
params: ~[mono_param_id],

branches/try2/src/librustc/middle/trans/datum.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ use core::uint;
110110
use syntax::ast;
111111
use syntax::parse::token::special_idents;
112112

113-
#[deriving_eq]
113+
#[deriving(Eq)]
114114
pub enum CopyAction {
115115
INIT,
116116
DROP_EXISTING
@@ -171,7 +171,7 @@ impl to_bytes::IterBytes for DatumMode {
171171
}
172172

173173
/// See `Datum cleanup styles` section at the head of this module.
174-
#[deriving_eq]
174+
#[deriving(Eq)]
175175
pub enum DatumCleanup {
176176
RevokeClean,
177177
ZeroMem

0 commit comments

Comments
 (0)