Add Debug implementation for hir::intravisit::FnKind

This commit is contained in:
Guillaume Gomez
2021-04-07 13:30:37 +02:00
committed by GitHub
parent 1c158b6a8b
commit 6e77bcbbcd
+1 -1
View File
@@ -98,7 +98,7 @@ fn visit_foreign_item(&self, foreign_item: &'hir ForeignItem<'hir>) {
}
}
#[derive(Copy, Clone)]
#[derive(Copy, Clone, Debug)]
pub enum FnKind<'a> {
/// `#[xxx] pub async/const/extern "Abi" fn foo()`
ItemFn(Ident, &'a Generics<'a>, FnHeader, &'a Visibility<'a>),