about summary refs log tree commit diff
path: root/src/comp/syntax/parse
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2011-11-08 17:17:06 -0800
committerBrian Anderson <banderson@mozilla.com>2011-11-08 17:17:06 -0800
commit4f3f04643f2ba6760e66e8efd54be07cb08a6b9c (patch)
tree2a45764aabb28eee335af48d6b08aabf20ce5e74 /src/comp/syntax/parse
parentd536bc2c10b7008dd3bccdfc9e82ba0af2533f34 (diff)
downloadrust-4f3f04643f2ba6760e66e8efd54be07cb08a6b9c.tar.gz
rust-4f3f04643f2ba6760e66e8efd54be07cb08a6b9c.zip
Remove native "cdecl" ABI
Diffstat (limited to 'src/comp/syntax/parse')
-rw-r--r--src/comp/syntax/parse/parser.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs
index 9db7c8ae5f0..1358d704fe0 100644
--- a/src/comp/syntax/parse/parser.rs
+++ b/src/comp/syntax/parse/parser.rs
@@ -2003,11 +2003,10 @@ fn parse_native_mod_items(p: parser, native_name: str, abi: ast::native_abi,
 
 fn parse_item_native_mod(p: parser, attrs: [ast::attribute]) -> @ast::item {
     let lo = p.get_last_lo_pos();
-    let abi = ast::native_abi_cdecl;
+    let abi = ast::native_abi_c_stack_cdecl;
     if !is_word(p, "mod") {
         let t = parse_str(p);
-        if str::eq(t, "cdecl") {
-        } else if str::eq(t, "rust-intrinsic") {
+        if str::eq(t, "rust-intrinsic") {
             abi = ast::native_abi_rust_intrinsic;
         } else if str::eq(t, "x86stdcall") {
             abi = ast::native_abi_x86stdcall;