From f1350dd93c92fa5e71b6c5d7f703fe19c2511e06 Mon Sep 17 00:00:00 2001 From: Edwin Cheng Date: Sat, 13 Mar 2021 20:14:21 +0800 Subject: add expand log --- crates/hir_expand/src/db.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crates/hir_expand') diff --git a/crates/hir_expand/src/db.rs b/crates/hir_expand/src/db.rs index cb6e23320..9086e6c17 100644 --- a/crates/hir_expand/src/db.rs +++ b/crates/hir_expand/src/db.rs @@ -340,6 +340,8 @@ fn parse_macro_with_arg( None => return ExpandResult { value: None, err: result.err }, }; + log::debug!("expanded = {}", tt.as_debug_string()); + let fragment_kind = to_fragment_kind(db, macro_call_id); let (parse, rev_token_map) = match mbe::token_tree_to_syntax_node(&tt, fragment_kind) { -- cgit v1.2.3