]> git.lizzy.rs Git - rust.git/blobdiff - src/libsyntax/ext/pipes/check.rs
libsyntax: Explicit-self-ify pipes compiler.
[rust.git] / src / libsyntax / ext / pipes / check.rs
index a8e0b3ba934dff2d188e15d54082b72f6bde9867..4676b5ed39363067dd2a83cd789eb2986d5fa7df 100644 (file)
 use ext::pipes::proto;
 
 pub impl proto::visitor<(), (), ()> for ext_ctxt {
-    fn visit_proto(_proto: protocol,
+    fn visit_proto(&self, _proto: protocol,
                    _states: &[()]) { }
 
-    fn visit_state(state: state, _m: &[()]) {
+    fn visit_state(&self, state: state, _m: &[()]) {
         if state.messages.len() == 0 {
             self.span_warn(
                 state.span, // use a real span!
@@ -51,7 +51,7 @@ fn visit_state(state: state, _m: &[()]) {
         }
     }
 
-    fn visit_message(name: ~str, _span: span, _tys: &[@ast::Ty],
+    fn visit_message(&self, name: ~str, _span: span, _tys: &[@ast::Ty],
                      this: state, next: Option<next_state>) {
         match next {
           Some(next_state { state: ref next, tys: next_tys }) => {