From f3ca50c9ca4fd2084cfbc85030ff5ea21e589635 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Tue, 14 Feb 2012 15:21:53 -0800 Subject: Encode/decode AST into metadata, re-instantiate inlined items --- src/comp/syntax/parse/parser.rs | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/comp/syntax/parse') diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs index 1a8fbdd917a..0de75d88422 100644 --- a/src/comp/syntax/parse/parser.rs +++ b/src/comp/syntax/parse/parser.rs @@ -2280,9 +2280,6 @@ fn fn_expr_lookahead(tok: token::token) -> bool { fn parse_item(p: parser, attrs: [ast::attribute]) -> option<@ast::item> { if eat_word(p, "const") { ret some(parse_item_const(p, attrs)); - } else if eat_word(p, "inline") { - expect_word(p, "fn"); - ret some(parse_item_fn(p, ast::impure_fn, attrs)); } else if is_word(p, "fn") && !fn_expr_lookahead(p.look_ahead(1u)) { p.bump(); ret some(parse_item_fn(p, ast::impure_fn, attrs)); -- cgit 1.4.1-3-g733a5