summary refs log tree commit diff
path: root/src/comp/syntax
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2011-11-07 15:14:10 -0800
committerBrian Anderson <banderson@mozilla.com>2011-11-07 15:14:10 -0800
commit1103fe8ca05f9048599b56ab2d9b99ba6de8a1f2 (patch)
treef4c93dd891519ff151c7ba1ec5f86aa1d89892be /src/comp/syntax
parentb0c2416270502c124e031b5e86a74cb14eff7662 (diff)
downloadrust-1103fe8ca05f9048599b56ab2d9b99ba6de8a1f2.tar.gz
rust-1103fe8ca05f9048599b56ab2d9b99ba6de8a1f2.zip
Remove native "rust" ABI
Diffstat (limited to 'src/comp/syntax')
-rw-r--r--src/comp/syntax/ast.rs1
-rw-r--r--src/comp/syntax/parse/parser.rs2
-rw-r--r--src/comp/syntax/print/pprust.rs1
3 files changed, 0 insertions, 4 deletions
diff --git a/src/comp/syntax/ast.rs b/src/comp/syntax/ast.rs
index 4bff18fa3f5..03b8872adc7 100644
--- a/src/comp/syntax/ast.rs
+++ b/src/comp/syntax/ast.rs
@@ -426,7 +426,6 @@ type anon_obj =
 type _mod = {view_items: [@view_item], items: [@item]};
 
 tag native_abi {
-    native_abi_rust;
     native_abi_cdecl;
     native_abi_llvm;
     native_abi_rust_intrinsic;
diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs
index f859300f3ea..3fff03addfd 100644
--- a/src/comp/syntax/parse/parser.rs
+++ b/src/comp/syntax/parse/parser.rs
@@ -2007,8 +2007,6 @@ fn parse_item_native_mod(p: parser, attrs: [ast::attribute]) -> @ast::item {
     if !is_word(p, "mod") {
         let t = parse_str(p);
         if str::eq(t, "cdecl") {
-        } else if str::eq(t, "rust") {
-            abi = ast::native_abi_rust;
         } else if str::eq(t, "llvm") {
             abi = ast::native_abi_llvm;
         } else if str::eq(t, "rust-intrinsic") {
diff --git a/src/comp/syntax/print/pprust.rs b/src/comp/syntax/print/pprust.rs
index 14afc69165c..9e447b5c4bf 100644
--- a/src/comp/syntax/print/pprust.rs
+++ b/src/comp/syntax/print/pprust.rs
@@ -402,7 +402,6 @@ fn print_item(s: ps, &&item: @ast::item) {
         head(s, "native");
         alt nmod.abi {
           ast::native_abi_llvm. { word_nbsp(s, "\"llvm\""); }
-          ast::native_abi_rust. { word_nbsp(s, "\"rust\""); }
           ast::native_abi_cdecl. { word_nbsp(s, "\"cdecl\""); }
           ast::native_abi_rust_intrinsic. {
             word_nbsp(s, "\"rust-intrinsic\"");