Skip to content

Commit 825cfdb

Browse files
committed
Print types for unevaluated constants
1 parent fa459a0 commit 825cfdb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/ty/print/pretty.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -829,10 +829,10 @@ pub trait PrettyPrinter<'gcx: 'tcx, 'tcx>:
829829
if let Ok(snip) = self.tcx().sess.source_map().span_to_snippet(span) {
830830
p!(write("{}", snip))
831831
} else {
832-
p!(write("_"))
832+
p!(write("_: "), print(ct.ty))
833833
}
834834
} else {
835-
p!(write("_"))
835+
p!(write("_: "), print(ct.ty))
836836
},
837837
}
838838
return Ok(self);

0 commit comments

Comments
 (0)