diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-02-10 13:39:15 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-02-14 11:24:09 -0800 |
| commit | 6943b38e4fd75dfd3c6ff80b96060ec9a39e01e9 (patch) | |
| tree | 68375cf27e462c6c3e9e1ae102bee7060f3345ec /src/comp/syntax | |
| parent | acabd821d2c3503c087b2ce2bd784c14f48cb407 (diff) | |
| download | rust-6943b38e4fd75dfd3c6ff80b96060ec9a39e01e9.tar.gz rust-6943b38e4fd75dfd3c6ff80b96060ec9a39e01e9.zip | |
rustc: Add crust functions to the AST
Diffstat (limited to 'src/comp/syntax')
| -rw-r--r-- | src/comp/syntax/ast.rs | 1 | ||||
| -rw-r--r-- | src/comp/syntax/print/pprust.rs | 1 |
2 files changed, 2 insertions, 0 deletions
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); |
