Skip to content

Commit 711d510

Browse files
committed
Remove unecessary extern "Rust" specifiers
1 parent 0607c13 commit 711d510

File tree

1 file changed

+8
-17
lines changed

1 file changed

+8
-17
lines changed

src/libsyntax/ext/base.rs

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,8 @@ pub struct MacroDef {
3535
ext: SyntaxExtension
3636
}
3737

38-
pub type ItemDecorator = extern "Rust" fn(&ExtCtxt,
39-
Span,
40-
@ast::MetaItem,
41-
~[@ast::item])
42-
-> ~[@ast::item];
38+
pub type ItemDecorator =
39+
fn(&ExtCtxt, Span, @ast::MetaItem, ~[@ast::item]) -> ~[@ast::item];
4340

4441
pub struct SyntaxExpanderTT {
4542
expander: SyntaxExpanderTTExpander,
@@ -56,10 +53,8 @@ pub trait SyntaxExpanderTTTrait {
5653
}
5754

5855
pub type SyntaxExpanderTTFunNoCtxt =
59-
extern "Rust" fn(ecx: &ExtCtxt,
60-
span: codemap::Span,
61-
token_tree: &[ast::token_tree])
62-
-> MacResult;
56+
fn(ecx: &ExtCtxt, span: codemap::Span, token_tree: &[ast::token_tree])
57+
-> MacResult;
6358

6459
enum SyntaxExpanderTTExpander {
6560
SyntaxExpanderTTExpanderWithoutContext(SyntaxExpanderTTFunNoCtxt),
@@ -119,16 +114,12 @@ impl SyntaxExpanderTTItemTrait for SyntaxExpanderTTItem {
119114
}
120115
}
121116

122-
pub type SyntaxExpanderTTItemFun = extern "Rust" fn(&ExtCtxt,
123-
Span,
124-
ast::Ident,
125-
~[ast::token_tree],
126-
ast::SyntaxContext)
127-
-> MacResult;
117+
pub type SyntaxExpanderTTItemFun =
118+
fn(&ExtCtxt, Span, ast::Ident, ~[ast::token_tree], ast::SyntaxContext)
119+
-> MacResult;
128120

129121
pub type SyntaxExpanderTTItemFunNoCtxt =
130-
extern "Rust" fn(&ExtCtxt, Span, ast::Ident, ~[ast::token_tree])
131-
-> MacResult;
122+
fn(&ExtCtxt, Span, ast::Ident, ~[ast::token_tree]) -> MacResult;
132123

133124
pub trait AnyMacro {
134125
fn make_expr(&self) -> @ast::Expr;

0 commit comments

Comments
 (0)