diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2015-02-01 12:44:15 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2015-02-04 20:06:08 -0500 |
| commit | 571cc7f8e98da46735a5728387c768cde75d010c (patch) | |
| tree | 2260e6f54186e1876a093bc670535116233ef524 /src/libsyntax/ast_map | |
| parent | ba2f13ef0667ce90f55ab0f1506bf5ee7b852d96 (diff) | |
| download | rust-571cc7f8e98da46735a5728387c768cde75d010c.tar.gz rust-571cc7f8e98da46735a5728387c768cde75d010c.zip | |
remove all kind annotations from closures
Diffstat (limited to 'src/libsyntax/ast_map')
| -rw-r--r-- | src/libsyntax/ast_map/blocks.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/ast_map/blocks.rs b/src/libsyntax/ast_map/blocks.rs index a85b87f47d6..1a537c7a5b8 100644 --- a/src/libsyntax/ast_map/blocks.rs +++ b/src/libsyntax/ast_map/blocks.rs @@ -179,13 +179,13 @@ impl<'a> FnLikeNode<'a> { } pub fn kind(self) -> visit::FnKind<'a> { - let item = |: p: ItemFnParts<'a>| -> visit::FnKind<'a> { + let item = |p: ItemFnParts<'a>| -> visit::FnKind<'a> { visit::FkItemFn(p.ident, p.generics, p.unsafety, p.abi) }; - let closure = |: _: ClosureParts| { + let closure = |_: ClosureParts| { visit::FkFnBlock }; - let method = |: m: &'a ast::Method| { + let method = |m: &'a ast::Method| { visit::FkMethod(m.pe_ident(), m.pe_generics(), m) }; self.handle(item, method, closure) |
