Skip to content

Commit 2cb4fe5

Browse files
committed
---
yaml --- r: 39867 b: refs/heads/incoming c: 1f5e9ff h: refs/heads/master i: 39865: 7f31a6f 39863: 659b821 v: v3
1 parent 63cc149 commit 2cb4fe5

File tree

7 files changed

+13
-11
lines changed

7 files changed

+13
-11
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: 3d5418789064fdb463e872a4e651af1c628a3650
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: a810c03263670238bccd64cabb12a23a46e3a278
9-
refs/heads/incoming: 530a113bfa2702b415e38f3168d5c95ee1d93718
9+
refs/heads/incoming: 1f5e9ff362042fe815fddfdaf211f782aa944229
1010
refs/heads/dist-snap: 22efa39382d41b084fde1719df7ae8ce5697d8c9
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/incoming/src/librustc/middle/ty.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3798,7 +3798,9 @@ fn ty_dtor(cx: ctxt, struct_id: def_id) -> DtorKind {
37983798
if is_local(struct_id) {
37993799
match cx.items.find(struct_id.node) {
38003800
Some(ast_map::node_item(@ast::item {
3801-
node: ast::item_struct(@{ dtor: Some(ref dtor), _ }, _),
3801+
node: ast::item_struct(@ast::struct_def { dtor: Some(ref dtor),
3802+
_ },
3803+
_),
38023804
_
38033805
}, _)) =>
38043806
LegacyDtor(local_def((*dtor).node.id)),

branches/incoming/src/librustdoc/tystr_pass.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ fn fold_struct(
371371
fn strip_struct_extra_stuff(item: @ast::item) -> @ast::item {
372372
let node = match item.node {
373373
ast::item_struct(def, tys) => {
374-
let def = @{
374+
let def = @ast::struct_def {
375375
dtor: None, // Remove the drop { } block
376376
.. *def
377377
};

branches/incoming/src/libsyntax/ast.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1501,15 +1501,15 @@ impl struct_field_kind : cmp::Eq {
15011501

15021502
#[auto_encode]
15031503
#[auto_decode]
1504-
type struct_def = {
1504+
struct struct_def {
15051505
fields: ~[@struct_field], /* fields */
15061506
/* (not including ctor or dtor) */
15071507
/* dtor is optional */
15081508
dtor: Option<struct_dtor>,
15091509
/* ID of the constructor. This is only used for tuple- or enum-like
15101510
* structs. */
15111511
ctor_id: Option<node_id>
1512-
};
1512+
}
15131513

15141514
/*
15151515
FIXME (#3300): Should allow items to be anonymous. Right now

branches/incoming/src/libsyntax/ext/auto_encode.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ fn expand_auto_encode(
141141

142142
~[filter_attrs(*item), ser_impl]
143143
},
144-
ast::item_struct(@{ fields, _}, tps) => {
144+
ast::item_struct(@ast::struct_def { fields, _}, tps) => {
145145
let ser_impl = mk_struct_ser_impl(
146146
cx,
147147
item.span,
@@ -207,7 +207,7 @@ fn expand_auto_decode(
207207

208208
~[filter_attrs(*item), deser_impl]
209209
},
210-
ast::item_struct(@{ fields, _}, tps) => {
210+
ast::item_struct(@ast::struct_def { fields, _}, tps) => {
211211
let deser_impl = mk_struct_deser_impl(
212212
cx,
213213
item.span,

branches/incoming/src/libsyntax/fold.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ fn fold_struct_def(struct_def: @ast::struct_def, fld: ast_fold)
281281
.. dtor.node},
282282
span: dtor.span }
283283
};
284-
return @{
284+
return @ast::struct_def {
285285
fields: vec::map(struct_def.fields, |f| fold_struct_field(*f, fld)),
286286
dtor: dtor,
287287
ctor_id: option::map(&struct_def.ctor_id, |cid| fld.new_id(*cid))
@@ -582,7 +582,7 @@ fn noop_fold_variant(v: variant_, fld: ast_fold) -> variant_ {
582582
.. dtor.node},
583583
.. *dtor }
584584
};
585-
kind = struct_variant_kind(@{
585+
kind = struct_variant_kind(@ast::struct_def {
586586
fields: vec::map(struct_def.fields,
587587
|f| fld.fold_struct_field(*f)),
588588
dtor: dtor,

branches/incoming/src/libsyntax/parse/parser.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2844,7 +2844,7 @@ impl Parser {
28442844
let _ = self.get_id(); // XXX: Workaround for crazy bug.
28452845
let new_id = self.get_id();
28462846
(class_name,
2847-
item_struct(@{
2847+
item_struct(@ast::struct_def {
28482848
fields: fields,
28492849
dtor: actual_dtor,
28502850
ctor_id: if is_tuple_like { Some(new_id) } else { None }
@@ -3340,7 +3340,7 @@ impl Parser {
33403340
span: d_s }
33413341
};
33423342
3343-
return @{
3343+
return @ast::struct_def {
33443344
fields: fields,
33453345
dtor: actual_dtor,
33463346
ctor_id: None

0 commit comments

Comments
 (0)