Skip to content

Commit 6fa908e

Browse files
committed
tweak fndef pretty print
1 parent 49bad0b commit 6fa908e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/rustc_middle/src/ty/print/pretty.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,8 @@ pub trait PrettyPrinter<'tcx>: Printer<'tcx> + fmt::Write {
662662
if with_no_queries() {
663663
p!(print_def_path(def_id, args));
664664
} else {
665-
p!("{{individual function type for", print_value_path(def_id, args), "}}");
665+
let sig = self.tcx().fn_sig(def_id).instantiate(self.tcx(), args);
666+
p!("{{function item type ", print_value_path(def_id, args), " (", print(sig) ,")}}");
666667
}
667668
}
668669
ty::FnPtr(ref bare_fn) => p!(print(bare_fn)),

0 commit comments

Comments
 (0)