Skip to content

Commit 27db6e1

Browse files
committed
Impl Eq/PartialEq on FnKind, improve docs
1 parent bef7d90 commit 27db6e1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/libsyntax/visit.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,15 @@ use codemap::Span;
3232
use ptr::P;
3333
use owned_slice::OwnedSlice;
3434

35-
#[derive(Copy, Clone)]
35+
#[derive(Copy, Clone, PartialEq, Eq)]
3636
pub enum FnKind<'a> {
3737
/// fn foo() or extern "Abi" fn foo()
3838
FkItemFn(Ident, &'a Generics, Unsafety, Constness, Abi, Visibility),
3939

4040
/// fn foo(&self)
4141
FkMethod(Ident, &'a MethodSig, Option<Visibility>),
4242

43-
/// |x, y| ...
44-
/// proc(x, y) ...
43+
/// Closures (|x, y| {})
4544
FkFnBlock,
4645
}
4746

0 commit comments

Comments
 (0)