Skip to content

Commit 7902347

Browse files
committed
Print types for unevaluated constants
1 parent b4bbf95 commit 7902347

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
@@ -831,10 +831,10 @@ pub trait PrettyPrinter<'gcx: 'tcx, 'tcx>:
831831
if let Ok(snip) = self.tcx().sess.source_map().span_to_snippet(span) {
832832
p!(write("{}", snip))
833833
} else {
834-
p!(write("_"))
834+
p!(write("_: "), print(ct.ty))
835835
}
836836
} else {
837-
p!(write("_"))
837+
p!(write("_: "), print(ct.ty))
838838
},
839839
}
840840
return Ok(self);

0 commit comments

Comments
 (0)