From a410652bc953137c8d579f218c2e3e68a9ef8c1c Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Tue, 12 Mar 2013 17:33:54 -0700 Subject: librustc: Remove "base types" from the language. --- src/libsyntax/ext/pipes/proto.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/libsyntax/ext') diff --git a/src/libsyntax/ext/pipes/proto.rs b/src/libsyntax/ext/pipes/proto.rs index 60df7623e40..c9680ac02c9 100644 --- a/src/libsyntax/ext/pipes/proto.rs +++ b/src/libsyntax/ext/pipes/proto.rs @@ -172,9 +172,13 @@ pub impl protocol_ { } } -pub impl protocol { - fn add_state_poly(&self, +name: ~str, ident: ast::ident, dir: direction, - +generics: ast::Generics) -> state { +pub impl protocol_ { + fn add_state_poly(@mut self, + +name: ~str, + ident: ast::ident, + dir: direction, + +generics: ast::Generics) + -> state { let messages = @mut ~[]; let state = @state_ { @@ -185,7 +189,7 @@ pub impl protocol { dir: dir, generics: generics, messages: messages, - proto: *self + proto: self }; self.states.push(state); -- cgit 1.4.1-3-g733a5