diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-03-12 17:33:54 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-03-13 20:07:09 -0700 |
| commit | a410652bc953137c8d579f218c2e3e68a9ef8c1c (patch) | |
| tree | a40ed1a63d4d1fc1bdfddc57adfb6e47ffd64b4b /src/libsyntax | |
| parent | b85158e23a12b1660591afe6ead1f375c2623b65 (diff) | |
| download | rust-a410652bc953137c8d579f218c2e3e68a9ef8c1c.tar.gz rust-a410652bc953137c8d579f218c2e3e68a9ef8c1c.zip | |
librustc: Remove "base types" from the language.
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ext/pipes/proto.rs | 12 |
1 files changed, 8 insertions, 4 deletions
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); |
