diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-11-29 18:37:33 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-11-29 22:07:49 -0800 |
| commit | 3ed9fbd63c6a3c6226bc466786e6d3c1bfec856d (patch) | |
| tree | 3552c8b37426ce0763648cb056f37f03a7b777ed /src/libsyntax/ext | |
| parent | 78ee821154ba6034a86397d8540fec00c94e9282 (diff) | |
| download | rust-3ed9fbd63c6a3c6226bc466786e6d3c1bfec856d.tar.gz rust-3ed9fbd63c6a3c6226bc466786e6d3c1bfec856d.zip | |
impls of traits cannot define methods on the anonymous trait
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/pipes/ast_builder.rs | 3 | ||||
| -rw-r--r-- | src/libsyntax/ext/pipes/mod.rs | 1 | ||||
| -rw-r--r-- | src/libsyntax/ext/pipes/parse_proto.rs | 1 | ||||
| -rw-r--r-- | src/libsyntax/ext/pipes/pipec.rs | 5 | ||||
| -rw-r--r-- | src/libsyntax/ext/trace_macros.rs | 1 |
5 files changed, 9 insertions, 2 deletions
diff --git a/src/libsyntax/ext/pipes/ast_builder.rs b/src/libsyntax/ext/pipes/ast_builder.rs index 652ad5533c4..e9bb42aa2a1 100644 --- a/src/libsyntax/ext/pipes/ast_builder.rs +++ b/src/libsyntax/ext/pipes/ast_builder.rs @@ -79,7 +79,10 @@ trait ext_ctxt_ast_builder { fn stmt_let(ident: ident, e: @ast::expr) -> @ast::stmt; fn stmt_expr(e: @ast::expr) -> @ast::stmt; fn block_expr(b: ast::blk) -> @ast::expr; + fn move_expr(e: @ast::expr) -> @ast::expr; fn ty_option(ty: @ast::Ty) -> @ast::Ty; + fn ty_infer() -> @ast::Ty; + fn ty_nil_ast_builder() -> @ast::Ty; } impl ext_ctxt: ext_ctxt_ast_builder { diff --git a/src/libsyntax/ext/pipes/mod.rs b/src/libsyntax/ext/pipes/mod.rs index b064f39eb3a..9f5c722afc3 100644 --- a/src/libsyntax/ext/pipes/mod.rs +++ b/src/libsyntax/ext/pipes/mod.rs @@ -38,7 +38,6 @@ use ext::base::ext_ctxt; use ast::tt_delim; use parse::lexer::{new_tt_reader, reader}; use parse::parser::Parser; -use parse::common::parser_common; use pipes::parse_proto::proto_parser; diff --git a/src/libsyntax/ext/pipes/parse_proto.rs b/src/libsyntax/ext/pipes/parse_proto.rs index 8f2b92a720c..9db2c1e6733 100644 --- a/src/libsyntax/ext/pipes/parse_proto.rs +++ b/src/libsyntax/ext/pipes/parse_proto.rs @@ -8,6 +8,7 @@ use pipec::*; trait proto_parser { fn parse_proto(id: ~str) -> protocol; fn parse_state(proto: protocol); + fn parse_message(state: state); } impl parser::Parser: proto_parser { diff --git a/src/libsyntax/ext/pipes/pipec.rs b/src/libsyntax/ext/pipes/pipec.rs index 907a193d05c..558e7d01259 100644 --- a/src/libsyntax/ext/pipes/pipec.rs +++ b/src/libsyntax/ext/pipes/pipec.rs @@ -24,6 +24,7 @@ mod syntax { trait gen_send { fn gen_send(cx: ext_ctxt, try: bool) -> @ast::item; + fn to_ty(cx: ext_ctxt) -> @ast::Ty; } trait to_type_decls { @@ -34,6 +35,10 @@ trait to_type_decls { trait gen_init { fn gen_init(cx: ext_ctxt) -> @ast::item; fn compile(cx: ext_ctxt) -> @ast::item; + fn buffer_ty_path(cx: ext_ctxt) -> @ast::Ty; + fn gen_buffer_type(cx: ext_ctxt) -> @ast::item; + fn gen_buffer_init(ext_cx: ext_ctxt) -> @ast::expr; + fn gen_init_bounded(ext_cx: ext_ctxt) -> @ast::expr; } impl message: gen_send { diff --git a/src/libsyntax/ext/trace_macros.rs b/src/libsyntax/ext/trace_macros.rs index f8c85fa01b7..fb0d4bb128e 100644 --- a/src/libsyntax/ext/trace_macros.rs +++ b/src/libsyntax/ext/trace_macros.rs @@ -3,7 +3,6 @@ use ext::base::ext_ctxt; use ast::tt_delim; use parse::lexer::{new_tt_reader, reader}; use parse::parser::Parser; -use parse::common::parser_common; fn expand_trace_macros(cx: ext_ctxt, sp: span, tt: ~[ast::token_tree]) -> base::mac_result |
