mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 01:05:39 +03:00
Add Debug implementation for hir::intravisit::FnKind
This commit is contained in:
@@ -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>),
|
||||
|
||||
Reference in New Issue
Block a user