Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 05b6aaa

Browse files
committed
Add debug logging to fn-related functions
1 parent 430f848 commit 05b6aaa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/types.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,8 @@ where
298298
<I as Iterator>::Item: Deref,
299299
<I::Item as Deref>::Target: Rewrite + Spanned + 'a,
300300
{
301+
debug!("format_function_type {:#?}", shape);
302+
301303
// Code for handling variadics is somewhat duplicated for items, but they
302304
// are different enough to need some serious refactoring to share code.
303305
enum ArgumentKind<T>
@@ -706,6 +708,8 @@ fn rewrite_bare_fn(
706708
context: &RewriteContext,
707709
shape: Shape,
708710
) -> Option<String> {
711+
debug!("rewrite_bare_fn {:#?}", shape);
712+
709713
let mut result = String::with_capacity(128);
710714

711715
if let Some(ref lifetime_str) = rewrite_lifetime_param(context, shape, &bare_fn.generic_params)

0 commit comments

Comments
 (0)