From 05b6aaa130f5ffefd7d3629a8655779cd7916e66 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Fri, 31 Aug 2018 16:52:45 +0300 Subject: [PATCH] Add debug logging to fn-related functions --- src/types.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/types.rs b/src/types.rs index 3ab639a1ac34..d64bd6ebe3a3 100644 --- a/src/types.rs +++ b/src/types.rs @@ -298,6 +298,8 @@ fn format_function_type<'a, I>( ::Item: Deref, ::Target: Rewrite + Spanned + 'a, { + debug!("format_function_type {:#?}", shape); + // Code for handling variadics is somewhat duplicated for items, but they // are different enough to need some serious refactoring to share code. enum ArgumentKind @@ -706,6 +708,8 @@ fn rewrite_bare_fn( context: &RewriteContext, shape: Shape, ) -> Option { + debug!("rewrite_bare_fn {:#?}", shape); + let mut result = String::with_capacity(128); if let Some(ref lifetime_str) = rewrite_lifetime_param(context, shape, &bare_fn.generic_params)