From 6943b38e4fd75dfd3c6ff80b96060ec9a39e01e9 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Fri, 10 Feb 2012 13:39:15 -0800 Subject: rustc: Add crust functions to the AST --- src/comp/syntax/ast.rs | 1 + src/comp/syntax/print/pprust.rs | 1 + 2 files changed, 2 insertions(+) (limited to 'src/comp/syntax') diff --git a/src/comp/syntax/ast.rs b/src/comp/syntax/ast.rs index 26a309d37f5..2ab7059a2a4 100644 --- a/src/comp/syntax/ast.rs +++ b/src/comp/syntax/ast.rs @@ -407,6 +407,7 @@ enum purity { pure_fn, // declared with "pure fn" unsafe_fn, // declared with "unsafe fn" impure_fn, // declared with "fn" + crust_fn, // declared with "crust fn" } enum ret_style { diff --git a/src/comp/syntax/print/pprust.rs b/src/comp/syntax/print/pprust.rs index 047653cc4c9..b0ed7ceed00 100644 --- a/src/comp/syntax/print/pprust.rs +++ b/src/comp/syntax/print/pprust.rs @@ -1199,6 +1199,7 @@ fn print_fn(s: ps, decl: ast::fn_decl, name: ast::ident, ast::impure_fn { head(s, "fn"); } ast::unsafe_fn { head(s, "unsafe fn"); } ast::pure_fn { head(s, "pure fn"); } + ast::crust_fn { head(s, "crust fn"); } } word(s.s, name); print_type_params(s, typarams); -- cgit 1.4.1-3-g733a5