From: Steven Allen Date: Sun, 22 Mar 2015 16:30:04 +0000 (-0700) Subject: Update for new FnKind::FkMethod signature X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=0fd4b6a15025f3efee55dd72d7ea8ec0d552cad4;p=rust.git Update for new FnKind::FkMethod signature --- diff --git a/src/mod.rs b/src/mod.rs index d4320fb7b18..132d56b6832 100644 --- a/src/mod.rs +++ b/src/mod.rs @@ -447,8 +447,8 @@ fn formal_args<'v>(&mut self, fk: visit::FnKind<'v>, fd: &'v ast::FnDecl) -> Opt len += ret_str.len(); // Opening brace if no where clause. match fk { - visit::FnKind::FkItemFn(_, g, _, _) | - visit::FnKind::FkMethod(_, g, _) + visit::FnKind::FkItemFn(_, &ref g, _, _) | + visit::FnKind::FkMethod(_, &ast::MethodSig { generics: ref g, ..}) if g.where_clause.predicates.len() > 0 => {} _ => len += 2 // ` {` }