Skip to content

Commit a957460

Browse files
committed
---
yaml --- r: 4430 b: refs/heads/master c: fd7ffd5 h: refs/heads/master v: v3
1 parent 57bf474 commit a957460

File tree

5 files changed

+11
-1
lines changed

5 files changed

+11
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 59e9b629c042e9417e5ac662cbf21c0205e765c7
2+
refs/heads/master: fd7ffd5ac27aa131a858a8a4954c545ece48644b

trunk/src/comp/front/test.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ fn mk_tests(cx: &test_ctxt) -> @ast::item {
178178
{inputs: ~[],
179179
output: ret_ty,
180180
purity: ast::impure_fn,
181+
il: ast::il_normal,
181182
cf: ast::return,
182183
constraints: ~[]};
183184
let proto = ast::proto_fn;
@@ -295,6 +296,7 @@ fn mk_main(cx: &test_ctxt) -> @ast::item {
295296
{inputs: ~[args_arg],
296297
output: @ret_ty,
297298
purity: ast::impure_fn,
299+
il: ast::il_normal,
298300
cf: ast::return,
299301
constraints: ~[]};
300302
let proto = ast::proto_fn;

trunk/src/comp/syntax/ast.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,10 +511,13 @@ type ty_constr = spanned[ty_constr_];
511511
corresponding to these. */
512512
type arg = {mode: mode, ty: @ty, ident: ident, id: node_id};
513513

514+
tag inlineness { il_normal; il_inline; }
515+
514516
type fn_decl =
515517
{inputs: arg[],
516518
output: @ty,
517519
purity: purity,
520+
il: inlineness,
518521
cf: controlflow,
519522
constraints: (@constr)[]};
520523

trunk/src/comp/syntax/fold.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ fn noop_fold_native_item(ni: &@native_item, fld: ast_fold) -> @native_item {
191191
{inputs: ivec::map(fold_arg, fdec.inputs),
192192
output: fld.fold_ty(fdec.output),
193193
purity: fdec.purity,
194+
il: fdec.il,
194195
cf: fdec.cf,
195196
constraints:
196197
ivec::map(fld.fold_constr,
@@ -449,6 +450,7 @@ fn noop_fold_fn(f: &_fn, fld: ast_fold) -> _fn {
449450
{inputs: ivec::map(fold_arg, f.decl.inputs),
450451
output: fld.fold_ty(f.decl.output),
451452
purity: f.decl.purity,
453+
il: f.decl.il,
452454
cf: f.decl.cf,
453455
constraints: ivec::map(fld.fold_constr, f.decl.constraints)},
454456
proto: f.proto,

trunk/src/comp/syntax/parse/parser.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1730,13 +1730,15 @@ fn parse_fn_decl(p: &parser, purity: ast::purity) -> ast::fn_decl {
17301730
ret {inputs: inputs.node,
17311731
output: t,
17321732
purity: purity,
1733+
il: ast::il_normal,
17331734
cf: ast::return,
17341735
constraints: constrs};
17351736
}
17361737
a_bang. {
17371738
ret {inputs: inputs.node,
17381739
output: @spanned(p.get_lo_pos(), p.get_hi_pos(), ast::ty_bot),
17391740
purity: purity,
1741+
il: ast::il_normal,
17401742
cf: ast::noreturn,
17411743
constraints: constrs};
17421744
}
@@ -1839,6 +1841,7 @@ fn parse_item_res(p: &parser, attrs: &ast::attribute[]) ->
18391841
id: p.get_id()}],
18401842
output: @spanned(lo, lo, ast::ty_nil),
18411843
purity: ast::impure_fn,
1844+
il: ast::il_normal,
18421845
cf: ast::return,
18431846
constraints: ~[]};
18441847
let f = {decl: decl, proto: ast::proto_fn, body: dtor};

0 commit comments

Comments
 (0)