Skip to content

Commit 14d0509

Browse files
committed
Log decoded inline_items when debug is active.
1 parent 355422d commit 14d0509

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/rustc/metadata/astencode.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,13 @@ fn decode_inlined_item(cdata: cstore::crate_metadata,
101101
decode_side_tables(xcx, ast_doc);
102102
#debug["< Decoded inlined fn: %s::%s",
103103
ast_map::path_to_str(path), ii.ident()];
104+
alt ii {
105+
ast::ii_item(i) {
106+
#debug(">>> DECODED ITEM >>>\n%s\n<<< DECODED ITEM <<<",
107+
rustsyntax::print::pprust::item_to_str(i));
108+
}
109+
_ { }
110+
}
104111
some(ii)
105112
}
106113
}

0 commit comments

Comments
 (0)