about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorEduard Burtescu <edy.burt@gmail.com>2014-11-01 19:51:16 +0200
committerEduard Burtescu <edy.burt@gmail.com>2014-11-05 12:55:58 +0200
commit56dbf3d1223bca9e02a201e43fb48895a1d5cbd1 (patch)
treedba9141d0aad42d415126320f7e9d8fdeece6841 /src/libsyntax/parse/parser.rs
parenteca8f11315cb3cd9836e6d8501a07fbb137f5e88 (diff)
downloadrust-56dbf3d1223bca9e02a201e43fb48895a1d5cbd1.tar.gz
rust-56dbf3d1223bca9e02a201e43fb48895a1d5cbd1.zip
Register snapshots.
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
-rw-r--r--src/libsyntax/parse/parser.rs11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 8ad5bdac7e2..10bb9ef3625 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -63,7 +63,6 @@ use ast::{Visibility, WhereClause, WherePredicate};
 use ast;
 use ast_util::{as_prec, ident_to_path, operator_prec};
 use ast_util;
-use attr;
 use codemap::{Span, BytePos, Spanned, spanned, mk_sp};
 use codemap;
 use parse;
@@ -1262,11 +1261,6 @@ impl<'a> Parser<'a> {
                 let vis = p.parse_visibility();
                 let abi = if p.eat_keyword(keywords::Extern) {
                     p.parse_opt_abi().unwrap_or(abi::C)
-                } else if attr::contains_name(attrs.as_slice(),
-                                              "rust_call_abi_hack") {
-                    // FIXME(stage0, pcwalton): Remove this awful hack after a
-                    // snapshot, and change to `extern "rust-call" fn`.
-                    abi::RustCall
                 } else {
                     abi::Rust
                 };
@@ -4446,11 +4440,6 @@ impl<'a> Parser<'a> {
             } else {
                 let abi = if self.eat_keyword(keywords::Extern) {
                     self.parse_opt_abi().unwrap_or(abi::C)
-                } else if attr::contains_name(attrs.as_slice(),
-                                              "rust_call_abi_hack") {
-                    // FIXME(stage0, pcwalton): Remove this awful hack after a
-                    // snapshot, and change to `extern "rust-call" fn`.
-                    abi::RustCall
                 } else {
                     abi::Rust
                 };