Skip to content

Commit

Permalink
remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
nstilt1 committed Dec 23, 2023
1 parent bd21520 commit 963968d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/report.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,8 @@ impl Report {

let source_map = tcx.sess.source_map();
let source = if span.from_expansion() {
rustc_hir_pretty::id_to_string(&hir_map, item_hir_id)
// User-Friendly report for macro-generated code
// rustc_hir_pretty::to_string(hir_map.krate(), |state| {
// state.print_item(hir_map.expect_item(item_hir_id));
// })
rustc_hir_pretty::id_to_string(&hir_map, item_hir_id)
} else {
source_map
.span_to_snippet(span)
Expand Down

0 comments on commit 963968d

Please sign in to comment.