From 6e77bcbbcd3b92c535c5d272f9508c55ffaa121e Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Wed, 7 Apr 2021 13:30:37 +0200 Subject: [PATCH] Add Debug implementation for hir::intravisit::FnKind --- compiler/rustc_hir/src/intravisit.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_hir/src/intravisit.rs b/compiler/rustc_hir/src/intravisit.rs index d766a68e19455..16b38bcf42cff 100644 --- a/compiler/rustc_hir/src/intravisit.rs +++ b/compiler/rustc_hir/src/intravisit.rs @@ -98,7 +98,7 @@ where } } -#[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>),