Skip to content

Commit

Permalink
Add debug logging to fn-related functions
Browse files Browse the repository at this point in the history
  • Loading branch information
YaLTeR committed Aug 31, 2018
1 parent 430f848 commit 05b6aaa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/types.rs
Expand Up @@ -298,6 +298,8 @@ where
<I as Iterator>::Item: Deref,
<I::Item as 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<T>
Expand Down Expand Up @@ -706,6 +708,8 @@ fn rewrite_bare_fn(
context: &RewriteContext,
shape: Shape,
) -> Option<String> {
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)
Expand Down

0 comments on commit 05b6aaa

Please sign in to comment.