Remove unecessary extern "Rust" specifiers
This commit is contained in:
@@ -35,11 +35,8 @@ pub struct MacroDef {
|
|||||||
ext: SyntaxExtension
|
ext: SyntaxExtension
|
||||||
}
|
}
|
||||||
|
|
||||||
pub type ItemDecorator = extern "Rust" fn(&ExtCtxt,
|
pub type ItemDecorator =
|
||||||
Span,
|
fn(&ExtCtxt, Span, @ast::MetaItem, ~[@ast::item]) -> ~[@ast::item];
|
||||||
@ast::MetaItem,
|
|
||||||
~[@ast::item])
|
|
||||||
-> ~[@ast::item];
|
|
||||||
|
|
||||||
pub struct SyntaxExpanderTT {
|
pub struct SyntaxExpanderTT {
|
||||||
expander: SyntaxExpanderTTExpander,
|
expander: SyntaxExpanderTTExpander,
|
||||||
@@ -56,10 +53,8 @@ pub trait SyntaxExpanderTTTrait {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub type SyntaxExpanderTTFunNoCtxt =
|
pub type SyntaxExpanderTTFunNoCtxt =
|
||||||
extern "Rust" fn(ecx: &ExtCtxt,
|
fn(ecx: &ExtCtxt, span: codemap::Span, token_tree: &[ast::token_tree])
|
||||||
span: codemap::Span,
|
-> MacResult;
|
||||||
token_tree: &[ast::token_tree])
|
|
||||||
-> MacResult;
|
|
||||||
|
|
||||||
enum SyntaxExpanderTTExpander {
|
enum SyntaxExpanderTTExpander {
|
||||||
SyntaxExpanderTTExpanderWithoutContext(SyntaxExpanderTTFunNoCtxt),
|
SyntaxExpanderTTExpanderWithoutContext(SyntaxExpanderTTFunNoCtxt),
|
||||||
@@ -119,16 +114,12 @@ impl SyntaxExpanderTTItemTrait for SyntaxExpanderTTItem {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub type SyntaxExpanderTTItemFun = extern "Rust" fn(&ExtCtxt,
|
pub type SyntaxExpanderTTItemFun =
|
||||||
Span,
|
fn(&ExtCtxt, Span, ast::Ident, ~[ast::token_tree], ast::SyntaxContext)
|
||||||
ast::Ident,
|
-> MacResult;
|
||||||
~[ast::token_tree],
|
|
||||||
ast::SyntaxContext)
|
|
||||||
-> MacResult;
|
|
||||||
|
|
||||||
pub type SyntaxExpanderTTItemFunNoCtxt =
|
pub type SyntaxExpanderTTItemFunNoCtxt =
|
||||||
extern "Rust" fn(&ExtCtxt, Span, ast::Ident, ~[ast::token_tree])
|
fn(&ExtCtxt, Span, ast::Ident, ~[ast::token_tree]) -> MacResult;
|
||||||
-> MacResult;
|
|
||||||
|
|
||||||
pub trait AnyMacro {
|
pub trait AnyMacro {
|
||||||
fn make_expr(&self) -> @ast::Expr;
|
fn make_expr(&self) -> @ast::Expr;
|
||||||
|
|||||||
Reference in New Issue
Block a user