- fn visit_ty_method(&mut self, tm: &ast::TypeMethod, _: ()) {
- check_unused_mut_fn_decl(self, &tm.decl);
- visit::walk_ty_method(self, tm, ());
- }
-
- fn visit_trait_method(&mut self, tm: &ast::trait_method, _: ()) {
- match *tm {
- ast::required(ref m) => check_unused_mut_fn_decl(self, &m.decl),
- ast::provided(ref m) => check_unused_mut_fn_decl(self, &m.decl)
- }
- visit::walk_trait_method(self, tm, ());
- }
-
- fn visit_local(&mut self, l: @ast::Local, _: ()) {
- if l.is_mutbl {
- check_unused_mut_pat(self, l.pat);
- }
- visit::walk_local(self, l, ());
- }
-