about summary refs log tree commit diff
path: root/src/comp/syntax/parse
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2011-08-05 11:33:09 -0700
committerPatrick Walton <pcwalton@mimiga.net>2011-08-05 11:33:48 -0700
commit9b9170f9fe2e4701255a5bd0630c203409d8e934 (patch)
treeea815ec0056056cc1b98500c3a3e25672401d6cb /src/comp/syntax/parse
parentad925955d889c791b81b00e5a0f1516dceb8684a (diff)
downloadrust-9b9170f9fe2e4701255a5bd0630c203409d8e934.tar.gz
rust-9b9170f9fe2e4701255a5bd0630c203409d8e934.zip
rustc: Introduce the concept of inline to the AST
Diffstat (limited to 'src/comp/syntax/parse')
-rw-r--r--src/comp/syntax/parse/parser.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs
index 9e7f693c74b..71a148c5337 100644
--- a/src/comp/syntax/parse/parser.rs
+++ b/src/comp/syntax/parse/parser.rs
@@ -1769,8 +1769,8 @@ fn parse_item_fn_or_iter(p: &parser, purity: ast::purity, proto: ast::proto,
     let lo = p.get_last_lo_pos();
     let t = parse_fn_header(p);
     let f = parse_fn(p, proto, purity);
-    ret mk_item(p, lo, f.body.span.hi, t.ident, ast::item_fn(f, t.tps),
-                attrs);
+    ret mk_item(p, lo, f.body.span.hi, t.ident,
+                ast::item_fn(f, t.tps, ast::il_normal), attrs);
 }
 
 fn parse_obj_field(p: &parser) -> ast::obj_field {