Skip to content

Commit 1479e40

Browse files
committed
shorten the pretty-print output
1 parent 0994cdb commit 1479e40

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

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

+1-7
Original file line numberDiff line numberDiff line change
@@ -663,13 +663,7 @@ pub trait PrettyPrinter<'tcx>: Printer<'tcx> + fmt::Write {
663663
p!(print_def_path(def_id, args));
664664
} else {
665665
let sig = self.tcx().fn_sig(def_id).instantiate(self.tcx(), args);
666-
p!(
667-
"{{function item type ",
668-
print_value_path(def_id, args),
669-
" (",
670-
print(sig),
671-
")}}"
672-
);
666+
p!("{{fn item ", print_value_path(def_id, args), " :", print(sig), "}}");
673667
}
674668
}
675669
ty::FnPtr(ref bare_fn) => p!(print(bare_fn)),

0 commit comments

Comments
 (0)