Skip to content

Commit 18d47ed

Browse files
committed
---
yaml --- r: 217023 b: refs/heads/stable c: 5d16772 h: refs/heads/master i: 217021: aa78d65 217019: 9a2942b 217015: dd37a5a 217007: ea5d4fd 216991: ec0f807 216959: 14519a4 v: v3
1 parent 83545ab commit 18d47ed

File tree

14 files changed

+18
-18
lines changed

14 files changed

+18
-18
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ refs/heads/tmp: 378a370ff2057afeb1eae86eb6e78c476866a4a6
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: a5286998df566e736b32f6795bfc3803bdaf453d
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: e0216fcc42d5f4961d07378a783c87814097015f
32+
refs/heads/stable: 5d16772ecb93270ac64b44b429a157f397a3e41d
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375

branches/stable/src/libsyntax/ext/deriving/bounds.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ pub fn expand_deriving_copy(cx: &mut ExtCtxt,
4545
associated_types: Vec::new(),
4646
};
4747

48-
trait_def.expand(cx, mitem, item, push);
48+
trait_def.expand(cx, mitem, &item, push);
4949
}

branches/stable/src/libsyntax/ext/deriving/clone.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pub fn expand_deriving_clone(cx: &mut ExtCtxt,
4747
associated_types: Vec::new(),
4848
};
4949

50-
trait_def.expand(cx, mitem, item, push)
50+
trait_def.expand(cx, mitem, &item, push)
5151
}
5252

5353
fn cs_clone(

branches/stable/src/libsyntax/ext/deriving/cmp/eq.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,5 @@ pub fn expand_deriving_eq(cx: &mut ExtCtxt,
6666
),
6767
associated_types: Vec::new(),
6868
};
69-
trait_def.expand(cx, mitem, item, push)
69+
trait_def.expand(cx, mitem, &item, push)
7070
}

branches/stable/src/libsyntax/ext/deriving/cmp/ord.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ pub fn expand_deriving_ord(cx: &mut ExtCtxt,
4848
associated_types: Vec::new(),
4949
};
5050

51-
trait_def.expand(cx, mitem, item, push)
51+
trait_def.expand(cx, mitem, &item, push)
5252
}
5353

5454

branches/stable/src/libsyntax/ext/deriving/cmp/partial_eq.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,5 @@ pub fn expand_deriving_partial_eq(cx: &mut ExtCtxt,
9090
),
9191
associated_types: Vec::new(),
9292
};
93-
trait_def.expand(cx, mitem, item, push)
93+
trait_def.expand(cx, mitem, &item, push)
9494
}

branches/stable/src/libsyntax/ext/deriving/cmp/partial_ord.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ pub fn expand_deriving_partial_ord(cx: &mut ExtCtxt,
8080
],
8181
associated_types: Vec::new(),
8282
};
83-
trait_def.expand(cx, mitem, item, push)
83+
trait_def.expand(cx, mitem, &item, push)
8484
}
8585

8686
#[derive(Copy, Clone)]

branches/stable/src/libsyntax/ext/deriving/decodable.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ fn expand_deriving_decodable_imp(cx: &mut ExtCtxt,
8787
associated_types: Vec::new(),
8888
};
8989

90-
trait_def.expand(cx, mitem, item, push)
90+
trait_def.expand(cx, mitem, &item, push)
9191
}
9292

9393
fn decodable_substructure(cx: &mut ExtCtxt, trait_span: Span,

branches/stable/src/libsyntax/ext/deriving/default.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pub fn expand_deriving_default(cx: &mut ExtCtxt,
4646
),
4747
associated_types: Vec::new(),
4848
};
49-
trait_def.expand(cx, mitem, item, push)
49+
trait_def.expand(cx, mitem, &item, push)
5050
}
5151

5252
fn default_substructure(cx: &mut ExtCtxt, trait_span: Span, substr: &Substructure) -> P<Expr> {

branches/stable/src/libsyntax/ext/deriving/encodable.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ fn expand_deriving_encodable_imp(cx: &mut ExtCtxt,
163163
associated_types: Vec::new(),
164164
};
165165

166-
trait_def.expand(cx, mitem, item, push)
166+
trait_def.expand(cx, mitem, &item, push)
167167
}
168168

169169
fn encodable_substructure(cx: &mut ExtCtxt, trait_span: Span,

branches/stable/src/libsyntax/ext/deriving/generic/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -380,22 +380,22 @@ impl<'a> TraitDef<'a> {
380380
pub fn expand(&self,
381381
cx: &mut ExtCtxt,
382382
mitem: &ast::MetaItem,
383-
item: Annotatable,
383+
item: &'a Annotatable,
384384
push: &mut FnMut(Annotatable))
385385
{
386-
match item {
387-
Annotatable::Item(item) => {
386+
match *item {
387+
Annotatable::Item(ref item) => {
388388
let newitem = match item.node {
389389
ast::ItemStruct(ref struct_def, ref generics) => {
390390
self.expand_struct_def(cx,
391-
&**struct_def,
391+
&struct_def,
392392
item.ident,
393393
generics)
394394
}
395395
ast::ItemEnum(ref enum_def, ref generics) => {
396396
self.expand_enum_def(cx,
397397
enum_def,
398-
&item.attrs[..],
398+
&item.attrs,
399399
item.ident,
400400
generics)
401401
}

branches/stable/src/libsyntax/ext/deriving/hash.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ pub fn expand_deriving_hash(cx: &mut ExtCtxt,
5252
associated_types: Vec::new(),
5353
};
5454

55-
hash_trait_def.expand(cx, mitem, item, push);
55+
hash_trait_def.expand(cx, mitem, &item, push);
5656
}
5757

5858
fn hash_substructure(cx: &mut ExtCtxt, trait_span: Span, substr: &Substructure) -> P<Expr> {

branches/stable/src/libsyntax/ext/deriving/primitive.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ pub fn expand_deriving_from_primitive(cx: &mut ExtCtxt,
6767
associated_types: Vec::new(),
6868
};
6969

70-
trait_def.expand(cx, mitem, item, push)
70+
trait_def.expand(cx, mitem, &item, push)
7171
}
7272

7373
fn cs_from(name: &str, cx: &mut ExtCtxt, trait_span: Span, substr: &Substructure) -> P<Expr> {

branches/stable/src/libsyntax/ext/deriving/show.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ pub fn expand_deriving_show(cx: &mut ExtCtxt,
4949
],
5050
associated_types: Vec::new(),
5151
};
52-
trait_def.expand(cx, mitem, item, push)
52+
trait_def.expand(cx, mitem, &item, push)
5353
}
5454

5555
/// We use the debug builders to do the heavy lifting here

0 commit comments

Comments
 (0)