diff options
Diffstat (limited to 'src/comp/front')
| -rw-r--r-- | src/comp/front/ast.rs | 1 | ||||
| -rw-r--r-- | src/comp/front/parser.rs | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/comp/front/ast.rs b/src/comp/front/ast.rs index 82b6d813..1f123f74 100644 --- a/src/comp/front/ast.rs +++ b/src/comp/front/ast.rs @@ -380,6 +380,7 @@ tag native_abi { native_abi_rust; native_abi_cdecl; native_abi_llvm; + native_abi_rust_intrinsic; } type native_mod = rec(str native_name, diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs index b886e8ae..e7a86d6e 100644 --- a/src/comp/front/parser.rs +++ b/src/comp/front/parser.rs @@ -2015,6 +2015,8 @@ fn parse_item_native_mod(parser p) -> @ast.item { abi = ast.native_abi_rust; } else if (_str.eq(t, "llvm")) { abi = ast.native_abi_llvm; + } else if (_str.eq(t, "rust-intrinsic")) { + abi = ast.native_abi_rust_intrinsic; } else { p.err("unsupported abi: " + t); fail; |